|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
A comment
| 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. |
| Method Detail |
public String getText()
throws RemoteException
public long getTimestamp()
throws RemoteException
public String getTimestamp(DateFormat dtFormat)
throws RemoteException
dtFormat - A DateFormat with which to format the comment timestamp
public String getAuthor()
throws RemoteException
public boolean hasAttachments()
throws RemoteException
public List getAttachments()
throws RemoteException
public void addAttachment(String name,
String desc,
String mimeType,
InputStream content)
throws RemoteException
name - 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
public void delete()
throws RemoteException
public void setText(String text)
throws IllegalStateException,
RemoteException
text - The text for the commentIllegalStateException - If the text is already been set once.
public void setAuthor(String author)
throws IllegalStateException,
RemoteException
author - The author for the commentIllegalStateException - If the author has already been set once.
public void setTimeStamp(long timestamp)
throws IllegalStateException,
RemoteException
timestamp - The timestamp for the commentIllegalStateException - If the timestamp has already been set once.
public boolean isPrivate()
throws RemoteException
|
| Services |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||