Class CommentAdapter
- java.lang.Object
-
- org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
-
- org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
-
- org.nuxeo.ecm.restapi.server.jaxrs.comment.CommentAdapter
-
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
public class CommentAdapter extends DefaultAdapter
- Since:
- 10.3
-
-
Constructor Summary
Constructors Constructor Description CommentAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.Response
createComment(Comment comment)
javax.ws.rs.core.Response
deleteComment(String commentId)
javax.ws.rs.core.Response
deleteExternalComment(String entityId)
Comment
getComment(String commentId)
PartialList<Comment>
getComments(Long pageSize, Long currentPageIndex)
Comment
getExternalComment(String entityId)
javax.ws.rs.core.Response
updateComment(String commentId, Comment comment)
Comment
updateExternalComment(String entityId, Comment comment)
-
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, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
-
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
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentAdapter
public CommentAdapter()
-
-
Method Detail
-
createComment
public javax.ws.rs.core.Response createComment(Comment comment)
-
getComments
public PartialList<Comment> getComments(Long pageSize, Long currentPageIndex)
-
getComment
public Comment getComment(String commentId)
-
getExternalComment
public Comment getExternalComment(String entityId)
-
updateComment
public javax.ws.rs.core.Response updateComment(String commentId, Comment comment)
-
updateExternalComment
public Comment updateExternalComment(String entityId, Comment comment)
-
deleteComment
public javax.ws.rs.core.Response deleteComment(String commentId)
-
deleteExternalComment
public javax.ws.rs.core.Response deleteExternalComment(String entityId)
-
-