public class CommentsModerationServiceImpl extends Object implements CommentsModerationService
| Constructor and Description |
|---|
CommentsModerationServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
approveComent(CoreSession session,
DocumentModel doc,
String commentId)
Approve the comment with the given commentId.
|
Task |
getModerationTask(TaskService taskService,
CoreSession session,
DocumentModel doc,
String commentId) |
void |
publishComment(CoreSession session,
DocumentModel comment)
Publish the given comment.
|
void |
rejectComment(CoreSession session,
DocumentModel doc,
String commentId)
Reject the comment with the given commentId.
|
void |
startModeration(CoreSession session,
DocumentModel doc,
String commentID,
ArrayList<String> moderators)
Starts the moderation process on given Comment posted on a documentModel.
|
public void startModeration(CoreSession session, DocumentModel doc, String commentID, ArrayList<String> moderators) throws ClientException
CommentsModerationServicestartModeration in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentID - the commentIdClientExceptionpublic Task getModerationTask(TaskService taskService, CoreSession session, DocumentModel doc, String commentId) throws ClientException
ClientExceptionpublic void approveComent(CoreSession session, DocumentModel doc, String commentId) throws ClientException
CommentsModerationServiceapproveComent in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentId - the commentIdClientExceptionpublic void rejectComment(CoreSession session, DocumentModel doc, String commentId) throws ClientException
CommentsModerationServicerejectComment in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentId - the commentIdClientExceptionpublic void publishComment(CoreSession session, DocumentModel comment) throws ClientException
CommentsModerationServicepublishComment in interface CommentsModerationServicesession - the coreSessioncomment - the comment to publishClientExceptionCopyright © 2011 Nuxeo SA. All Rights Reserved.