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) |
protected void |
notifyEvent(CoreSession session,
String eventId,
Map<String,Serializable> properties,
String comment,
String category,
DocumentModel dm) |
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 CommentsModerationServiceImpl()
public void startModeration(CoreSession session, DocumentModel doc, String commentID, ArrayList<String> moderators)
CommentsModerationServicestartModeration in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentID - the commentIdpublic Task getModerationTask(TaskService taskService, CoreSession session, DocumentModel doc, String commentId)
public void approveComent(CoreSession session, DocumentModel doc, String commentId)
CommentsModerationServiceapproveComent in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentId - the commentIdpublic void rejectComment(CoreSession session, DocumentModel doc, String commentId)
CommentsModerationServicerejectComment in interface CommentsModerationServicesession - the coreSessiondoc - the document were the comment is postedcommentId - the commentIdpublic void publishComment(CoreSession session, DocumentModel comment)
CommentsModerationServicepublishComment in interface CommentsModerationServicesession - the coreSessioncomment - the comment to publishprotected void notifyEvent(CoreSession session, String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm)
Copyright © 2019 Nuxeo. All rights reserved.