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 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.
-
-
-
Method Detail
-
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
public void approveComent(CoreSession session, DocumentModel doc, String commentId)
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
public void rejectComment(CoreSession session, DocumentModel doc, String commentId)
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
public void publishComment(CoreSession session, DocumentModel comment)
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)
-
-