|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CommentManager
Method Summary | |
---|---|
DocumentModel |
createComment(DocumentModel docModel,
DocumentModel comment)
|
DocumentModel |
createComment(DocumentModel docModel,
DocumentModel parent,
DocumentModel child)
|
DocumentModel |
createComment(DocumentModel docModel,
String comment)
Deprecated. CommentManager cannot find the author if invoked remotely so one should use createComment(DocumentModel, String, String) |
DocumentModel |
createComment(DocumentModel docModel,
String comment,
String author)
Creates a comment document model, filling its properties with given info and linking it to given document. |
DocumentModel |
createLocatedComment(DocumentModel docModel,
DocumentModel comment,
String path)
Creates a comment document model. |
void |
deleteComment(DocumentModel docModel,
DocumentModel comment)
|
List<DocumentModel> |
getComments(DocumentModel docModel)
|
List<DocumentModel> |
getComments(DocumentModel docModel,
DocumentModel parent)
|
List<DocumentModel> |
getDocumentsForComment(DocumentModel comment)
Gets documents in relation with a particular comment. |
DocumentModel |
getThreadForComment(DocumentModel comment)
Gets thread in relation with a given comment (post or comment) |
Method Detail |
---|
List<DocumentModel> getComments(DocumentModel docModel) throws ClientException
ClientException
List<DocumentModel> getComments(DocumentModel docModel, DocumentModel parent) throws ClientException
ClientException
@Deprecated DocumentModel createComment(DocumentModel docModel, String comment) throws ClientException
createComment(DocumentModel, String, String)
ClientException
DocumentModel createComment(DocumentModel docModel, String comment, String author) throws ClientException
docModel
- the document to commentcomment
- the comment contentauthor
- the comment author
ClientException
DocumentModel createComment(DocumentModel docModel, DocumentModel comment) throws ClientException
ClientException
DocumentModel createComment(DocumentModel docModel, DocumentModel parent, DocumentModel child) throws ClientException
ClientException
void deleteComment(DocumentModel docModel, DocumentModel comment) throws ClientException
ClientException
List<DocumentModel> getDocumentsForComment(DocumentModel comment) throws ClientException
comment
- the comment
ClientException
DocumentModel getThreadForComment(DocumentModel comment) throws ClientException
comment
-
ClientException
DocumentModel createLocatedComment(DocumentModel docModel, DocumentModel comment, String path) throws ClientException
docModel
- the document to commentcomment
- the comment contentpath
- the location path
ClientException
|
Nuxeo ECM Projects 5.4.3-SNAPSHOT | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |