|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.comment.impl.CommentableDocumentAdapter
public class CommentableDocumentAdapter
| Constructor Summary | |
|---|---|
CommentableDocumentAdapter(DocumentModel docModel)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CommentableDocumentAdapter(DocumentModel docModel)
| Method Detail |
|---|
public DocumentModel addComment(DocumentModel comment)
throws ClientException
CommentableDocument
addComment in interface CommentableDocumentClientException
@Deprecated
public DocumentModel addComment(String comment)
throws ClientException
ClientException
public DocumentModel addComment(DocumentModel parent,
DocumentModel comment)
throws ClientException
CommentableDocument
addComment in interface CommentableDocumentparent - the parent comment, which must existcomment - the comment to be added
ClientException
public void removeComment(DocumentModel comment)
throws ClientException
CommentableDocument
removeComment in interface CommentableDocumentClientException
public List<DocumentModel> getComments()
throws ClientException
CommentableDocument
getComments in interface CommentableDocumentClientException
public List<DocumentModel> getComments(DocumentModel parent)
throws ClientException
CommentableDocument
getComments in interface CommentableDocumentparent - the parent comment
ClientException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||