public interface CommentsModerationService
Modifier and Type | Method and Description |
---|---|
void |
approveComent(CoreSession session,
DocumentModel document,
String commentId)
Approve the comment with the given commentId.
|
void |
publishComment(CoreSession session,
DocumentModel comment)
Publish the given comment.
|
void |
rejectComment(CoreSession session,
DocumentModel document,
String commentId)
Reject the comment with the given commentId.
|
void |
startModeration(CoreSession session,
DocumentModel document,
String commentId,
ArrayList<String> moderators)
Starts the moderation process on given Comment posted on a documentModel.
|
void startModeration(CoreSession session, DocumentModel document, String commentId, ArrayList<String> moderators)
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdvoid approveComent(CoreSession session, DocumentModel document, String commentId)
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdvoid rejectComment(CoreSession session, DocumentModel document, String commentId)
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdvoid publishComment(CoreSession session, DocumentModel comment)
session
- the coreSessioncomment
- the comment to publishCopyright © 2015 Nuxeo SA. All rights reserved.