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)
CommentsModerationService
startModeration
in interface CommentsModerationService
session
- 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)
CommentsModerationService
approveComent
in interface CommentsModerationService
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentIdpublic void rejectComment(CoreSession session, DocumentModel doc, String commentId)
CommentsModerationService
rejectComment
in interface CommentsModerationService
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentIdpublic void publishComment(CoreSession session, DocumentModel comment)
CommentsModerationService
publishComment
in interface CommentsModerationService
session
- the coreSessioncomment
- the comment to publishprotected void notifyEvent(CoreSession session, String eventId, Map<String,Serializable> properties, String comment, String category, DocumentModel dm)
Copyright © 2015 Nuxeo SA. All rights reserved.