Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.comment.workflow.services
Class CommentsModerationServiceImpl

java.lang.Object
  extended by org.nuxeo.ecm.platform.comment.workflow.services.CommentsModerationServiceImpl
All Implemented Interfaces:
CommentsModerationService

public class CommentsModerationServiceImpl
extends Object
implements CommentsModerationService


Constructor Summary
CommentsModerationServiceImpl()
           
 
Method Summary
 void approveComent(CoreSession session, DocumentModel doc, String commentId)
          Approve the comment with the given commentId.
 ProcessInstance getModerationProcess(JbpmService jbpmService, CoreSession session, DocumentModel doc, String commentId)
           
 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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommentsModerationServiceImpl

public CommentsModerationServiceImpl()
Method Detail

startModeration

public void startModeration(CoreSession session,
                            DocumentModel doc,
                            String commentID,
                            ArrayList<String> moderators)
                     throws ClientException
Description copied from interface: CommentsModerationService
Starts the moderation process on given Comment posted on a documentModel.

Specified by:
startModeration in interface CommentsModerationService
Parameters:
session - the coreSession
doc - the document were the comment is posted
commentID - the commentId
Throws:
ClientException

getModerationProcess

public ProcessInstance getModerationProcess(JbpmService jbpmService,
                                            CoreSession session,
                                            DocumentModel doc,
                                            String commentId)
                                     throws ClientException
Throws:
ClientException

approveComent

public void approveComent(CoreSession session,
                          DocumentModel doc,
                          String commentId)
                   throws ClientException
Description copied from interface: CommentsModerationService
Approve the comment with the given commentId.

Specified by:
approveComent in interface CommentsModerationService
Parameters:
session - the coreSession
doc - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

rejectComment

public void rejectComment(CoreSession session,
                          DocumentModel doc,
                          String commentId)
                   throws ClientException
Description copied from interface: CommentsModerationService
Reject the comment with the given commentId.

Specified by:
rejectComment in interface CommentsModerationService
Parameters:
session - the coreSession
doc - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

publishComment

public void publishComment(CoreSession session,
                           DocumentModel comment)
                    throws ClientException
Description copied from interface: CommentsModerationService
Publish the given comment.

Specified by:
publishComment in interface CommentsModerationService
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.