Class CommentsModerationServiceImpl
java.lang.Object
org.nuxeo.ecm.platform.comment.workflow.services.CommentsModerationServiceImpl
- All Implemented Interfaces:
CommentsModerationService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapproveComent(CoreSession session, DocumentModel doc, String commentId) Approve the comment with the given commentId.getModerationTask(TaskService taskService, CoreSession session, DocumentModel doc, String commentId) protected voidnotifyEvent(CoreSession session, String eventId, Map<String, Serializable> properties, String comment, String category, DocumentModel dm) voidpublishComment(CoreSession session, DocumentModel comment) Publish the given comment.voidrejectComment(CoreSession session, DocumentModel doc, String commentId) Reject the comment with the given commentId.voidstartModeration(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:CommentsModerationServiceStarts the moderation process on given Comment posted on a documentModel.- Specified by:
startModerationin 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:CommentsModerationServiceApprove the comment with the given commentId.- Specified by:
approveComentin interfaceCommentsModerationService- Parameters:
session- the coreSessiondoc- the document were the comment is postedcommentId- the commentId
-
rejectComment
Description copied from interface:CommentsModerationServiceReject the comment with the given commentId.- Specified by:
rejectCommentin interfaceCommentsModerationService- Parameters:
session- the coreSessiondoc- the document were the comment is postedcommentId- the commentId
-
publishComment
Description copied from interface:CommentsModerationServicePublish the given comment.- Specified by:
publishCommentin 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)
-