Interface CommentsModerationService
- All Known Implementing Classes:
CommentsModerationServiceImpl
public interface CommentsModerationService
-
Method Summary
Modifier and TypeMethodDescriptionvoid
approveComent
(CoreSession session, DocumentModel document, String commentId) Approve the comment with the given commentId.void
publishComment
(CoreSession session, DocumentModel comment) Publish the given comment.void
rejectComment
(CoreSession session, DocumentModel document, String commentId) Reject the comment with the given commentId.void
startModeration
(CoreSession session, DocumentModel document, String commentId, ArrayList<String> moderators) Starts the moderation process on given Comment posted on a documentModel.
-
Method Details
-
startModeration
void startModeration(CoreSession session, DocumentModel document, String commentId, ArrayList<String> moderators) Starts the moderation process on given Comment posted on a documentModel.- Parameters:
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentId
-
approveComent
Approve the comment with the given commentId.- Parameters:
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentId
-
rejectComment
Reject the comment with the given commentId.- Parameters:
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentId
-
publishComment
Publish the given comment.- Parameters:
session
- the coreSessioncomment
- the comment to publish
-