Class CommentsModerationServiceImpl
- java.lang.Object
-
- org.nuxeo.ecm.platform.comment.workflow.services.CommentsModerationServiceImpl
-
- All Implemented Interfaces:
CommentsModerationService
public class CommentsModerationServiceImpl extends Object implements CommentsModerationService
-
-
Constructor Summary
Constructors Constructor Description CommentsModerationServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapproveComent(CoreSession session, DocumentModel doc, String commentId)Approve the comment with the given commentId.TaskgetModerationTask(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.
-
-
-
Method Detail
-
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
public void approveComent(CoreSession session, DocumentModel doc, String commentId)
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
public void rejectComment(CoreSession session, DocumentModel doc, String commentId)
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
public void publishComment(CoreSession session, DocumentModel comment)
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)
-
-