Nuxeo Enterprise Platform 5.4

org.nuxeo.ecm.platform.comment.ejb
Class CommentsModerationBean

java.lang.Object
  extended by org.nuxeo.ecm.platform.comment.ejb.CommentsModerationBean
All Implemented Interfaces:
CommentsModerationLocal, CommentsModerationService

public class CommentsModerationBean
extends java.lang.Object
implements CommentsModerationLocal


Constructor Summary
CommentsModerationBean()
           
 
Method Summary
 void approveComent(CoreSession session, DocumentModel document, java.lang.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, java.lang.String commentId)
          Reject the comment with the given commentId.
 void startModeration(CoreSession session, DocumentModel document, java.lang.String commentId, java.util.ArrayList<java.lang.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

CommentsModerationBean

public CommentsModerationBean()
Method Detail

approveComent

public void approveComent(CoreSession session,
                          DocumentModel document,
                          java.lang.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
document - 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

rejectComment

public void rejectComment(CoreSession session,
                          DocumentModel document,
                          java.lang.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
document - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

startModeration

public void startModeration(CoreSession session,
                            DocumentModel document,
                            java.lang.String commentId,
                            java.util.ArrayList<java.lang.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
document - the document were the comment is posted
commentId - the commentId
Throws:
ClientException

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.