public class DefaultCommentService extends Object implements CommentService
Constructor and Description |
---|
DefaultCommentService(CommentManager commentManager,
PermissionManager permissionManager,
ContentEntityManager contentManager,
EditorConverter editorConverter) |
Modifier and Type | Method and Description |
---|---|
CreateCommentCommand |
newCreateCommentCommand(long contentId,
long parentCommentId,
String content)
Retrieve a command to add a new command to some content, threaded below some other comment.
|
CreateCommentCommand |
newCreateCommentCommand(long contentId,
long parentCommentId,
String content,
UUID submissionToken)
Retrieve a command to add a new command to some content, threaded below some other comment.
|
CreateCommentCommand |
newCreateCommentCommand(long contentId,
String content)
Retrieve a command to create a new comment and add it to some content.
|
CreateCommentCommand |
newCreateCommentCommand(long contentId,
String content,
UUID submissionToken)
Retrieve a command to create a new comment and add it to some content.
|
CreateCommentCommand |
newCreateCommentFromEditorCommand(long contentId,
long parentCommentId,
String content)
Retrieve a command to add a new command to some content, threaded below some other comment.
|
CreateCommentCommand |
newCreateCommentFromEditorCommand(long contentId,
long parentCommentId,
String content,
UUID submissionToken)
Retrieve a command to add a new command to some content, threaded below some other comment.
|
CreateCommentCommand |
newCreateCommentFromEditorCommand(long contentId,
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,
String newContent)
Retrieve a command to edit the contents of a comment.
|
EditCommentCommand |
newEditCommentFromEditorCommand(long commentId,
String newContent)
Retrieve a command to edit the contents of a comment.
|
public DefaultCommentService(CommentManager commentManager, PermissionManager permissionManager, ContentEntityManager contentManager, EditorConverter editorConverter)
public DeleteCommentCommand newDeleteCommentCommand(long commentId)
CommentService
newDeleteCommentCommand
in interface CommentService
commentId
- the ID of the comment to deletepublic CreateCommentCommand newCreateCommentCommand(long contentId, String content)
CommentService
newCreateCommentCommand
in interface CommentService
contentId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the commentpublic CreateCommentCommand newCreateCommentCommand(long contentId, String content, UUID submissionToken)
CommentService
newCreateCommentCommand
in interface CommentService
contentId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the commentsubmissionToken
- a unique identifier for the commentpublic CreateCommentCommand newCreateCommentCommand(long contentId, long parentCommentId, String content)
CommentService
newCreateCommentCommand
in interface CommentService
contentId
- 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 commentpublic CreateCommentCommand newCreateCommentCommand(long contentId, long parentCommentId, String content, UUID submissionToken)
CommentService
newCreateCommentCommand
in interface CommentService
contentId
- 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 commentsubmissionToken
- a unique identifier for the commentpublic EditCommentCommand newEditCommentCommand(long commentId, String newContent)
CommentService
newEditCommentCommand
in interface CommentService
commentId
- the id of the comment to editnewContent
- the new body of the contentpublic CreateCommentCommand newCreateCommentFromEditorCommand(long contentId, String content)
CommentService
newCreateCommentFromEditorCommand
in interface CommentService
contentId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the commentpublic CreateCommentCommand newCreateCommentFromEditorCommand(long contentId, long parentCommentId, String content)
CommentService
newCreateCommentFromEditorCommand
in interface CommentService
contentId
- 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 CreateCommentCommand newCreateCommentFromEditorCommand(long contentId, long parentCommentId, String content, UUID submissionToken)
CommentService
newCreateCommentFromEditorCommand
in interface CommentService
contentId
- 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.submissionToken
- a unique identifier for the commentpublic EditCommentCommand newEditCommentFromEditorCommand(long commentId, String newContent)
CommentService
newEditCommentFromEditorCommand
in interface CommentService
commentId
- the id of the comment to editnewContent
- the new body of the contentCopyright © 2003–2018 Atlassian. All rights reserved.