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 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 |
CommentService
public CommentService()
doPost
public javax.ws.rs.core.Response doPost(java.lang.String cText)
reject
public javax.ws.rs.core.Response reject()
approve
public javax.ws.rs.core.Response approve()
remove
public javax.ws.rs.core.Response remove()
deleteComment
public javax.ws.rs.core.Response deleteComment()
throws java.lang.Exception
- Throws:
java.lang.Exception
getCommentManager
public static CommentManager getCommentManager()
throws java.lang.Exception
- Throws:
java.lang.Exception
getCommentsModerationService
public static CommentsModerationService getCommentsModerationService()
throws java.lang.Exception
- Throws:
java.lang.Exception
Copyright © 2010 Nuxeo SAS. All Rights Reserved.