|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentInterface
A comment
Method Summary | |
---|---|
void |
addAttachment(java.lang.String name,
java.lang.String desc,
java.lang.String mimeType,
java.io.InputStream content)
Add an attachment to the comment. |
void |
delete()
Delete the comment - only available to the owner of the comment group |
java.lang.String |
formatComment(java.lang.String xsl)
Format the content of the comment with the transformation |
java.util.List |
getAttachments()
Returns the list of attachments for this comment |
java.lang.String |
getAuthor()
Get the comment author |
java.lang.String |
getText()
Get the comment text |
long |
getTimestamp()
Get the comment timestamp |
java.lang.String |
getTimestamp(java.text.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(java.lang.String author)
Sets the author for a comment. |
void |
setText(java.lang.String text)
Sets the text for a comment. |
void |
setTimeStamp(long timestamp)
Sets the timestamp for a comment. |
Method Detail |
---|
java.lang.String getText() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.long getTimestamp() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String getTimestamp(java.text.DateFormat dtFormat) throws java.rmi.RemoteException
dtFormat
- A DateFormat with which to format the comment timestamp
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String getAuthor() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.boolean hasAttachments() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.java.util.List getAttachments() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.void addAttachment(java.lang.String name, java.lang.String desc, java.lang.String mimeType, java.io.InputStream content) throws java.rmi.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
java.rmi.RemoteException
- In the event of remote object failure.java.lang.String formatComment(java.lang.String xsl) throws java.rmi.RemoteException
xsl
- The XSL transformation to use to format the comment.
java.rmi.RemoteException
- In the event of remote object failure.void delete() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.void setText(java.lang.String text) throws java.lang.IllegalStateException, java.rmi.RemoteException
text
- The text for the comment
java.lang.IllegalStateException
- If the text is already been set once.
java.rmi.RemoteException
- In the event of remote object failure.void setAuthor(java.lang.String author) throws java.lang.IllegalStateException, java.rmi.RemoteException
author
- The author for the comment
java.lang.IllegalStateException
- If the author has already been set once.
java.rmi.RemoteException
- In the event of remote object failure.void setTimeStamp(long timestamp) throws java.lang.IllegalStateException, java.rmi.RemoteException
timestamp
- The timestamp for the comment
java.lang.IllegalStateException
- If the timestamp has already been set once.
java.rmi.RemoteException
- In the event of remote object failure.boolean isPrivate() throws java.rmi.RemoteException
java.rmi.RemoteException
- In the event of remote object failure.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |