Interface CommentsModerationService

    • 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 coreSession
        document - the document were the comment is posted
        commentId - the commentId
      • approveComent

        void approveComent​(CoreSession session,
                           DocumentModel document,
                           String commentId)
        Approve the comment with the given commentId.
        Parameters:
        session - the coreSession
        document - the document were the comment is posted
        commentId - the commentId
      • rejectComment

        void rejectComment​(CoreSession session,
                           DocumentModel document,
                           String commentId)
        Reject the comment with the given commentId.
        Parameters:
        session - the coreSession
        document - the document were the comment is posted
        commentId - the commentId