Interface CommentsModerationService
-
- All Known Implementing Classes:
CommentsModerationServiceImpl
public interface CommentsModerationService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
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
void approveComent(CoreSession session, DocumentModel document, String commentId)
Approve the comment with the given commentId.- Parameters:
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentId
-
rejectComment
void rejectComment(CoreSession session, DocumentModel document, String commentId)
Reject the comment with the given commentId.- Parameters:
session
- the coreSessiondocument
- the document were the comment is postedcommentId
- the commentId
-
publishComment
void publishComment(CoreSession session, DocumentModel comment)
Publish the given comment.- Parameters:
session
- the coreSessioncomment
- the comment to publish
-
-