public class CommentableDocumentAdapter extends Object implements CommentableDocument
| Constructor and Description | 
|---|
CommentableDocumentAdapter(DocumentModel docModel)  | 
| 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. 
 | 
DocumentModel | 
addComment(String comment)
Deprecated.  
 | 
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. 
 | 
public CommentableDocumentAdapter(DocumentModel docModel)
public DocumentModel addComment(DocumentModel comment) throws ClientException
CommentableDocumentaddComment in interface CommentableDocumentClientException@Deprecated public DocumentModel addComment(String comment) throws ClientException
ClientExceptionpublic DocumentModel addComment(DocumentModel parent, DocumentModel comment) throws ClientException
CommentableDocumentaddComment in interface CommentableDocumentparent - the parent comment, which must existcomment - the comment to be addedClientExceptionpublic void removeComment(DocumentModel comment) throws ClientException
CommentableDocumentremoveComment in interface CommentableDocumentClientExceptionpublic List<DocumentModel> getComments() throws ClientException
CommentableDocumentgetComments in interface CommentableDocumentClientExceptionpublic List<DocumentModel> getComments(DocumentModel parent) throws ClientException
CommentableDocumentgetComments in interface CommentableDocumentparent - the parent commentClientExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.