Class CommentableDocumentAdapter
java.lang.Object
org.nuxeo.ecm.platform.comment.impl.CommentableDocumentAdapter
- All Implemented Interfaces:
Serializable
,CommentableDocument
- Author:
- George Lefter
- See Also:
-
Field Summary
-
Constructor Summary
-
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.
-
Field Details
-
docModel
-
commentManager
-
-
Constructor Details
-
CommentableDocumentAdapter
-
-
Method Details
-
addComment
Description copied from interface:CommentableDocument
Creates a new comment.- Specified by:
addComment
in interfaceCommentableDocument
-
addComment
Description copied from interface:CommentableDocument
Creates a new comment in a specific location.- Specified by:
addComment
in interfaceCommentableDocument
- Parameters:
comment
- the comment to be addedpath
- the given location
-
addComment
Description copied from interface:CommentableDocument
Creates a new comment as a reply to an existing comment.- Specified by:
addComment
in interfaceCommentableDocument
- Parameters:
parent
- the parent comment, which must existcomment
- the comment to be added
-
removeComment
Description copied from interface:CommentableDocument
Removes a comment from the document comment list.- Specified by:
removeComment
in interfaceCommentableDocument
-
getComments
Description copied from interface:CommentableDocument
Returns all comments for this document.- Specified by:
getComments
in interfaceCommentableDocument
- Returns:
- the list of comments
-
getComments
Description copied from interface:CommentableDocument
Returns the comments for this document that are replied to a parent comment.- Specified by:
getComments
in interfaceCommentableDocument
- Parameters:
parent
- the parent comment- Returns:
- the comments for the parent comment
-