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) throws ClientException
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdClientException
void approveComent(CoreSession session, DocumentModel document, String commentId) throws ClientException
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdClientException
void rejectComment(CoreSession session, DocumentModel document, String commentId) throws ClientException
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentIdClientException
void publishComment(CoreSession session, DocumentModel comment) throws ClientException
session
- the coreSessioncomment
- the comment to publishClientException
Copyright © 2015 Nuxeo SA. All rights reserved.