Interface CommentableDocument
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
CommentableDocumentAdapter
- Author:
- George Lefter
-
Method Summary
Modifier and TypeMethodDescriptionaddComment
(DocumentModel comment) Creates a new comment.addComment
(DocumentModel comment, String path) Creates a new comment in a specific location.addComment
(DocumentModel parent, DocumentModel comment) Creates a new comment as a reply to an existing comment.Returns all comments for this document.getComments
(DocumentModel parent) Returns the comments for this document that are replied to a parent comment.void
removeComment
(DocumentModel comment) Removes a comment from the document comment list.
-
Method Details
-
getComments
List<DocumentModel> getComments()Returns all comments for this document.- Returns:
- the list of comments
-
getComments
Returns the comments for this document that are replied to a parent comment.- Parameters:
parent
- the parent comment- Returns:
- the comments for the parent comment
-
removeComment
Removes a comment from the document comment list. -
addComment
Creates a new comment. -
addComment
Creates a new comment in a specific location.- Parameters:
comment
- the comment to be addedpath
- the given location- Since:
- 10.2
-
addComment
Creates a new comment as a reply to an existing comment.- Parameters:
parent
- the parent comment, which must existcomment
- the comment to be added
-