public interface CommentableDocument extends Serializable
Modifier and Type | Method and Description |
---|---|
DocumentModel |
addComment(DocumentModel comment)
Creates a new comment.
|
DocumentModel |
addComment(DocumentModel parent,
DocumentModel comment)
Creates a new comment as a reply to an existing comment.
|
List<DocumentModel> |
getComments()
Returns all comments for this document.
|
List<DocumentModel> |
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.
|
List<DocumentModel> getComments()
List<DocumentModel> getComments(DocumentModel parent)
parent
- the parent commentvoid removeComment(DocumentModel comment)
comment
- DocumentModel addComment(DocumentModel comment)
comment
- DocumentModel addComment(DocumentModel parent, DocumentModel comment)
parent
- the parent comment, which must existcomment
- the comment to be addedCopyright © 2016 Nuxeo SA. All rights reserved.