org.nuxeo.ecm.core.rest
Class CommentService
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
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:
- POST - create a new comment
- 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.
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 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 |
CommentService
public CommentService()
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
Copyright © 2011 Nuxeo SAS. All Rights Reserved.