Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.core.rest
Class CommentService

java.lang.Object
  extended by org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
      extended by org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
          extended by org.nuxeo.ecm.core.rest.CommentService
All Implemented Interfaces:
AdapterResource, Resource, Adaptable
Direct Known Subclasses:
WebCommentService

public class CommentService
extends DefaultAdapter

Comment Service - manages document comments.

Accepts the following methods:

Author:
Bogdan Stefanescu, Sun Seng David TAN, rux allow extending the service for the possible customizations. Some atomic actions are provided with default implementation but allowed for overwriting.

Constructor Summary
CommentService()
           
 
Method Summary
 Response approve()
           
 Response deleteComment()
           
 Response doPost(String cText)
           
static CommentManager getCommentManager()
           
static CommentsModerationService getCommentsModerationService()
           
 Response reject()
           
 Response remove()
           
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapter
 
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
 
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
 

Constructor Detail

CommentService

public CommentService()
Method Detail

doPost

public Response doPost(String cText)

reject

public Response reject()

approve

public Response approve()

remove

public Response remove()

deleteComment

public Response deleteComment()
                       throws Exception
Throws:
Exception

getCommentManager

public static CommentManager getCommentManager()
                                        throws Exception
Throws:
Exception

getCommentsModerationService

public static CommentsModerationService getCommentsModerationService()
                                                              throws Exception
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.