Package 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
Deprecated.
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.
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavax.ws.rs.core.Responseapprove()Deprecated.protected voidapproveComent(CoreSession session, DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow workflow.protected DocumentModelcreateCommentDocument(CoreSession session, DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow creation of localized comment.javax.ws.rs.core.ResponseDeprecated.protected voiddeleteComment(DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow workflow.javax.ws.rs.core.ResponseDeprecated.static CommentManagerDeprecated.static CommentsModerationServiceDeprecated.protected voidpublishComment(CoreSession session, DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow workflow.javax.ws.rs.core.Responsereject()Deprecated.protected voidrejectComment(CoreSession session, DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow workflow.javax.ws.rs.core.Responseremove()Deprecated.Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
disptachAdapter, getTarget, isAdapterMethods 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, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapterMethods 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
-
Constructor Details
-
CommentService
public CommentService()Deprecated.
-
-
Method Details
-
doPost
Deprecated. -
reject
public javax.ws.rs.core.Response reject()Deprecated. -
approve
public javax.ws.rs.core.Response approve()Deprecated. -
remove
public javax.ws.rs.core.Response remove()Deprecated. -
deleteComment
public javax.ws.rs.core.Response deleteComment()Deprecated. -
getCommentManager
Deprecated. -
getCommentsModerationService
Deprecated. -
createCommentDocument
protected DocumentModel createCommentDocument(CoreSession session, DocumentModel target, DocumentModel comment) Deprecated.Can be overwritten to allow creation of localized comment. Defaults to create comment in comments root.- Parameters:
session- the core sessiontarget- commented documentcomment- comment itself- Returns:
- the comment created
-
publishComment
Deprecated.Can be overwritten to allow workflow. Defaults to publish right away.- Parameters:
session- the core sessiontarget- commented documentcomment- comment itself
-
deleteComment
Deprecated.Can be overwritten to allow workflow. Defaults to delete right away.- Parameters:
target- commented documentcomment- comment itself
-
rejectComment
Deprecated.Can be overwritten to allow workflow. Defaults to reject and delete right away.- Parameters:
target- commented documentcomment- comment itself
-
approveComent
Deprecated.Can be overwritten to allow workflow. Defaults to approve right away.- Parameters:
target- commented documentcomment- comment itself
-
org.nuxeo.ecm.restapi.server.jaxrs.comment.CommentAdapterinstead.