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.jaxrs.comment.AnnotationAdapter
-
- All Implemented Interfaces:
AdapterResource
,Resource
,Adaptable
public class AnnotationAdapter extends DefaultAdapter
- Since:
- 10.1
-
-
Constructor Summary
Constructors Constructor Description AnnotationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description javax.ws.rs.core.Response
createAnnotation(Annotation annotation)
javax.ws.rs.core.Response
deleteAnnotation(String annotationId)
javax.ws.rs.core.Response
deleteExternalAnnotation(String entityId)
Annotation
getAnnotation(String annotationId)
List<Annotation>
getAnnotations(String xpath)
List<Comment>
getComments(List<String> annotationIds)
Deprecated.since 11.3, usegetCommentsFromBody(String)
insteadList<Comment>
getCommentsFromBody(String payload)
Annotation
getExternalAnnotation(String entityId)
Annotation
updateAnnotation(String annotationId, Annotation annotation)
Annotation
updateExternalAnnotation(String entityId, Annotation annotation)
-
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
-
-
Method Detail
-
createAnnotation
public javax.ws.rs.core.Response createAnnotation(Annotation annotation)
-
getAnnotations
public List<Annotation> getAnnotations(String xpath)
-
getComments
@Deprecated(since="11.3") public List<Comment> getComments(List<String> annotationIds)
Deprecated.since 11.3, usegetCommentsFromBody(String)
instead
-
getAnnotation
public Annotation getAnnotation(String annotationId)
-
getExternalAnnotation
public Annotation getExternalAnnotation(String entityId)
-
updateAnnotation
public Annotation updateAnnotation(String annotationId, Annotation annotation)
-
updateExternalAnnotation
public Annotation updateExternalAnnotation(String entityId, Annotation annotation)
-
deleteAnnotation
public javax.ws.rs.core.Response deleteAnnotation(String annotationId)
-
deleteExternalAnnotation
public javax.ws.rs.core.Response deleteExternalAnnotation(String entityId)
-
-