Class AnnotationAdapter
java.lang.Object
org.nuxeo.ecm.webengine.model.impl.AbstractResource<ResourceTypeImpl>
org.nuxeo.ecm.webengine.model.impl.DefaultAdapter
org.nuxeo.ecm.restapi.server.comment.AnnotationAdapter
- All Implemented Interfaces:
AdapterResource,Resource,Adaptable
- Since:
- 10.1
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.ResponsecreateAnnotation(Annotation annotation) jakarta.ws.rs.core.ResponsedeleteAnnotation(String annotationId) jakarta.ws.rs.core.ResponsedeleteExternalAnnotation(String entityId) getAnnotation(String annotationId) getAnnotations(String xpath) getComments(List<String> annotationIds) Deprecated.getCommentsFromBody(String payload) getExternalAnnotation(String entityId) updateAnnotation(String annotationId, Annotation annotation) updateExternalAnnotation(String entityId, Annotation annotation) 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
-
Field Details
-
NAME
- See Also:
-
-
Constructor Details
-
AnnotationAdapter
public AnnotationAdapter()
-
-
Method Details
-
createAnnotation
-
getAnnotations
-
getComments
@GET @Path("comments") @Deprecated(since="11.3") public List<Comment> getComments(@QueryParam("annotationIds") List<String> annotationIds) Deprecated.since 11.3, usegetCommentsFromBody(String)instead -
getCommentsFromBody
-
getAnnotation
@GET @Path("{annotationId}") public Annotation getAnnotation(@PathParam("annotationId") String annotationId) -
getExternalAnnotation
@GET @Path("external/{entityId}") public Annotation getExternalAnnotation(@PathParam("entityId") String entityId) -
updateAnnotation
@PUT @Path("{annotationId}") public Annotation updateAnnotation(@PathParam("annotationId") String annotationId, Annotation annotation) -
updateExternalAnnotation
@PUT @Path("external/{entityId}") public Annotation updateExternalAnnotation(@PathParam("entityId") String entityId, Annotation annotation) -
deleteAnnotation
@DELETE @Path("{annotationId}") public jakarta.ws.rs.core.Response deleteAnnotation(@PathParam("annotationId") String annotationId) -
deleteExternalAnnotation
@DELETE @Path("external/{entityId}") public jakarta.ws.rs.core.Response deleteExternalAnnotation(@PathParam("entityId") String entityId)
-
getCommentsFromBody(String)instead