Class CommentsModerationServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.comment.workflow.services.CommentsModerationServiceImpl
- All Implemented Interfaces:
CommentsModerationService
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
approveComent
(CoreSession session, DocumentModel doc, String commentId) Approve the comment with the given commentId.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.
-
Constructor Details
-
CommentsModerationServiceImpl
public CommentsModerationServiceImpl()
-
-
Method Details
-
startModeration
public void startModeration(CoreSession session, DocumentModel doc, String commentID, ArrayList<String> moderators) Description copied from interface:CommentsModerationService
Starts the moderation process on given Comment posted on a documentModel.- Specified by:
startModeration
in interfaceCommentsModerationService
- Parameters:
session
- the coreSessiondoc
- the document were the comment is postedcommentID
- the commentId
-
getModerationTask
public Task getModerationTask(TaskService taskService, CoreSession session, DocumentModel doc, String commentId) -
approveComent
Description copied from interface:CommentsModerationService
Approve the comment with the given commentId.- Specified by:
approveComent
in interfaceCommentsModerationService
- Parameters:
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentId
-
rejectComment
Description copied from interface:CommentsModerationService
Reject the comment with the given commentId.- Specified by:
rejectComment
in interfaceCommentsModerationService
- Parameters:
session
- the coreSessiondoc
- the document were the comment is postedcommentId
- the commentId
-
publishComment
Description copied from interface:CommentsModerationService
Publish the given comment.- Specified by:
publishComment
in interfaceCommentsModerationService
- Parameters:
session
- the coreSessioncomment
- the comment to publish
-
notifyEvent
protected void notifyEvent(CoreSession session, String eventId, Map<String, Serializable> properties, String comment, String category, DocumentModel dm)
-