|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.confluence.content.service.DefaultCommentService
public class DefaultCommentService
Constructor Summary | |
---|---|
DefaultCommentService()
|
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. |
CreateCommentCommand |
newCreateCommentFromEditorCommand(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 |
newCreateCommentFromEditorCommand(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. |
EditCommentCommand |
newEditCommentFromEditorCommand(long commentId,
java.lang.String newContent)
Retrieve a command to edit the contents of a comment. |
void |
setCommentManager(CommentManager commentManager)
|
void |
setEditConverter(EditorConverter editorConvertor)
|
void |
setPageManager(PageManager pageManager)
|
void |
setPermissionManager(PermissionManager permissionManager)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCommentService()
Method Detail |
---|
public DeleteCommentCommand newDeleteCommentCommand(long commentId)
CommentService
newDeleteCommentCommand
in interface CommentService
commentId
- the ID of the comment to delete
public CreateCommentCommand newCreateCommentCommand(long pageId, java.lang.String content)
CommentService
newCreateCommentCommand
in interface CommentService
pageId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the comment
public CreateCommentCommand newCreateCommentCommand(long pageId, long parentCommentId, java.lang.String content)
CommentService
newCreateCommentCommand
in interface CommentService
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
public EditCommentCommand newEditCommentCommand(long commentId, java.lang.String newContent)
CommentService
newEditCommentCommand
in interface CommentService
commentId
- the id of the comment to editnewContent
- the new body of the content
public CreateCommentCommand newCreateCommentFromEditorCommand(long pageId, long parentCommentId, java.lang.String content)
CommentService
newCreateCommentFromEditorCommand
in interface CommentService
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 in Confluence editor format.
public EditCommentCommand newEditCommentFromEditorCommand(long commentId, java.lang.String newContent)
CommentService
newEditCommentFromEditorCommand
in interface CommentService
commentId
- the id of the comment to editnewContent
- the new body of the content
public CreateCommentCommand newCreateCommentFromEditorCommand(long pageId, java.lang.String content)
CommentService
newCreateCommentFromEditorCommand
in interface CommentService
pageId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the comment
public void setCommentManager(CommentManager commentManager)
public void setPermissionManager(PermissionManager permissionManager)
public void setPageManager(PageManager pageManager)
public void setEditConverter(EditorConverter editorConvertor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |