Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.comment.workflow.services
Interface CommentsModerationService

All Known Implementing Classes:
CommentsModerationServiceImpl

public interface CommentsModerationService


Method Summary
 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)
                     throws ClientException
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
Throws:
ClientException

approveComent

void approveComent(CoreSession session,
                   DocumentModel document,
                   String commentId)
                   throws ClientException
Approve the comment with the given commentId.

Parameters:
session - the coreSession
document - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

rejectComment

void rejectComment(CoreSession session,
                   DocumentModel document,
                   String commentId)
                   throws ClientException
Reject the comment with the given commentId.

Parameters:
session - the coreSession
document - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

publishComment

void publishComment(CoreSession session,
                    DocumentModel comment)
                    throws ClientException
Publish the given comment.

Parameters:
session - the coreSession
comment - the comment to publish
Throws:
ClientException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.