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