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
CommentsModerationService
startModeration
in interface CommentsModerationService
session
- the coreSessiondoc
- the document were the comment is postedcommentID
- the commentIdClientException
public Task getModerationTask(TaskService taskService, CoreSession session, DocumentModel doc, String commentId) throws ClientException
ClientException
public void approveComent(CoreSession session, DocumentModel doc, String commentId) throws ClientException
CommentsModerationService
approveComent
in interface CommentsModerationService
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentIdClientException
public void rejectComment(CoreSession session, DocumentModel doc, String commentId) throws ClientException
CommentsModerationService
rejectComment
in interface CommentsModerationService
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentIdClientException
public void publishComment(CoreSession session, DocumentModel comment) throws ClientException
CommentsModerationService
publishComment
in interface CommentsModerationService
session
- the coreSessioncomment
- the comment to publishClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.