public interface CommentService
Modifier and Type | Method and Description |
---|---|
CreateCommentCommand |
newCreateCommentCommand(long pageId,
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 pageId,
String content,
UUID submissionToken)
Retrieve a command to create a new comment and add it to some content.
|
CreateCommentCommand |
newCreateCommentFromEditorCommand(long pageId,
long parentCommentId,
String content,
UUID submissionToken)
Retrieve a command to add a new command to some content, threaded below some other comment.
|
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.
|
DeleteCommentCommand newDeleteCommentCommand(long commentId)
commentId
- the ID of the comment to deleteCreateCommentCommand newCreateCommentCommand(long pageId, String content, UUID submissionToken)
pageId
- the ID of the AbstractPage to attach the comment tocontent
- the content of the commentsubmissionToken
- a unique identifier for the commentCreateCommentCommand newCreateCommentCommand(long pageId, long parentCommentId, String content, UUID submissionToken)
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 commentsubmissionToken
- a unique identifier for the commentCreateCommentCommand newCreateCommentFromEditorCommand(long pageId, long parentCommentId, String content, UUID submissionToken)
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.submissionToken
- a unique identifier for the commentEditCommentCommand newEditCommentFromEditorCommand(long commentId, String newContent)
commentId
- the id of the comment to editnewContent
- the new body of the contentEditCommentCommand newEditCommentCommand(long commentId, String newContent)
commentId
- the id of the comment to editnewContent
- the new body of the contentCopyright © 2003–2020 Atlassian. All rights reserved.