|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object | +--com.sas.services.information.metadata.Comment
Represents a comment in a discussion thread
| Field Summary | |
protected boolean |
_private
|
| Constructor Summary | |
Comment()
Creates a new comment. |
|
Comment(UserContextInterface author,
String text)
Creates a new comment with the author coming from the user context. |
|
Comment(UserContextInterface author,
String text,
boolean secret)
Creates a new private comment with the author coming from the user context. |
|
| Method Summary | |
void |
addAttachment(String name,
String desc,
String mimeType,
InputStream content)
Add an attachment to the comment. |
void |
delete()
Delete the comment - only available to the owner of the comment group |
String |
formatComment(String xsl)
Format the content of the comment with the transformation |
List |
getAttachments()
Returns the list of attachments for this comment |
String |
getAuthor()
Get the comment author |
String |
getText()
Get the comment text |
long |
getTimestamp()
Get the comment timestamp |
String |
getTimestamp(DateFormat dtFormat)
Get the formatted comment timestamp |
boolean |
hasAttachments()
Does the comment have an attachment? |
boolean |
isPrivate()
Returns whether this comment is private or not |
void |
setAuthor(String author)
Sets the author for a comment. |
void |
setText(String text)
Sets the text for a comment. |
void |
setTimeStamp(long timestamp)
Sets the timestamp for a comment. |
String |
toString()
Format a comment for processing as a String. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected boolean _private
| Constructor Detail |
public Comment()
throws RemoteException
public Comment(UserContextInterface author,
String text)
throws RemoteException
author - The user context under which the comment is authoredtext - The text of the comment
public Comment(UserContextInterface author,
String text,
boolean secret)
throws RemoteException
author - The user context under which the comment is authoredtext - The text of the commentsecret - Is this a private comment or not?| Method Detail |
public String getText()
throws RemoteException
CommentInterfacegetText in interface CommentInterfacecom.sas.services.information.metadata.CommentInterface
public String getTimestamp(DateFormat dtFormat)
throws RemoteException
CommentInterfacegetTimestamp in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfacedtFormat - A DateFormat with which to format the comment timestamp
public long getTimestamp()
throws RemoteException
CommentInterfacegetTimestamp in interface CommentInterfacecom.sas.services.information.metadata.CommentInterface
public String getAuthor()
throws RemoteException
CommentInterfacegetAuthor in interface CommentInterfacecom.sas.services.information.metadata.CommentInterface
public boolean hasAttachments()
throws RemoteException
CommentInterfacehasAttachments in interface CommentInterfacecom.sas.services.information.metadata.CommentInterface
public List getAttachments()
throws RemoteException
CommentInterfacegetAttachments in interface CommentInterfacecom.sas.services.information.metadata.CommentInterface
public void addAttachment(String name,
String desc,
String mimeType,
InputStream content)
throws RemoteException
CommentInterfaceaddAttachment in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfacename - A name for this attachmentdesc - A description for this attachmentmimeType - A MIME type for this attachmentcontent - An input stream with the content for this attachment
public String formatComment(String xsl)
throws RemoteException
CommentInterfaceformatComment in interface CommentInterface
public void delete()
throws RemoteException
CommentInterfacedelete in interface CommentInterface
public void setTimeStamp(long timestamp)
throws IllegalStateException,
RemoteException
CommentInterfacesetTimeStamp in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfacetimestamp - The timestamp for the commentIllegalStateException - If the timestamp has already been set once.
public void setAuthor(String author)
throws IllegalStateException,
RemoteException
CommentInterfacesetAuthor in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfaceauthor - The author for the commentIllegalStateException - If the author has already been set once.
public void setText(String text)
throws IllegalStateException,
RemoteException
CommentInterfacesetText in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfacetext - The text for the commentIllegalStateException - If the text is already been set once.public boolean isPrivate()
CommentInterfaceisPrivate in interface CommentInterfacecom.sas.services.information.metadata.CommentInterfacepublic String toString()
toString in class Object
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||