|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentService
Service interface for manipulating Comments.
Method Summary | |
---|---|
CreateCommentCommand |
newCreateCommentCommand(long pageId,
long parentCommentId,
java.lang.String content)
Retrieve a command to add a new command to some content, threaded below some other comment. |
CreateCommentCommand |
newCreateCommentCommand(long pageId,
java.lang.String content)
Retrieve a command to create a new comment and add it to some content. |
DeleteCommentCommand |
newDeleteCommentCommand(long commentId)
Retrieve a command to delete an existing comment |
EditCommentCommand |
newEditCommentCommand(long commentId,
java.lang.String newContent)
Retrieve a command to edit the contents of a comment. |
Method Detail |
---|
DeleteCommentCommand newDeleteCommentCommand(long commentId)
commentId
- the ID of the comment to delete
CreateCommentCommand newCreateCommentCommand(long pageId, java.lang.String content)
pageId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the comment
CreateCommentCommand newCreateCommentCommand(long pageId, long parentCommentId, java.lang.String content)
pageId
- the ID of the AbstractPage to attach the comment toparentCommentId
- the ID of the comment that is the parent of this comment in a threadcontent
- the content of the comment
EditCommentCommand newEditCommentCommand(long commentId, java.lang.String newContent)
commentId
- the id of the comment to editnewContent
- the new body of the content
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |