Package org.nuxeo.client.objects.comment
Class AnnotationAdapter
- java.lang.Object
-
- org.nuxeo.client.objects.AbstractBase<B>
-
- org.nuxeo.client.objects.AbstractConnectable<RepositoryAPI,A>
-
- org.nuxeo.client.objects.Document.AbstractAdapter<AnnotationAdapter>
-
- org.nuxeo.client.objects.comment.AnnotationAdapter
-
- All Implemented Interfaces:
Connectable
public class AnnotationAdapter extends Document.AbstractAdapter<AnnotationAdapter>
This API is available since Nuxeo Server 10.3.- Since:
- 3.2
-
-
Field Summary
-
Fields inherited from class org.nuxeo.client.objects.Document.AbstractAdapter
adapter, documentId, repositoryName
-
Fields inherited from class org.nuxeo.client.objects.AbstractConnectable
api, apiClass, nuxeoClient
-
Fields inherited from class org.nuxeo.client.objects.AbstractBase
headerInterceptors, headerValues, okhttpBuilder, retrofit, retrofitBuilder
-
-
Constructor Summary
Constructors Constructor Description AnnotationAdapter(Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Annotationcreate(Annotation annotation)Annotationfetch(java.lang.String annotationId)AnnotationfetchByEntityId(java.lang.String entityId)CommentsfetchComments(java.util.List<java.lang.String> annotationIds)Annotationslist()Fetches annotations forDocument.DEFAULT_FILE_CONTENTblob.Annotationslist(java.lang.String xpath)voidremove(java.lang.String annotationId)voidremoveByEntityId(java.lang.String entityId)CommentAdapterrepliesAdapter(java.lang.String commentId)Annotationupdate(java.lang.String annotationId, Annotation annotation)Annotationupdate(Annotation annotation)AnnotationupdateByEntityId(java.lang.String entityId, Annotation annotation)-
Methods inherited from class org.nuxeo.client.objects.Document.AbstractAdapter
delete, delete, delete, delete, get, get, get, get, getDocumentId, post, post, post, post, put, put, put, put
-
Methods inherited from class org.nuxeo.client.objects.AbstractConnectable
buildRetrofit, fetchResponse, fetchResponse, reconnectWith
-
Methods inherited from class org.nuxeo.client.objects.AbstractBase
connectTimeout, depth, enrichers, enrichers, enrichersForDocument, fetchProperties, fetchProperties, fetchPropertiesForDocument, fetchPropertiesForGroup, header, header, header, header, header, header, header, readTimeout, replaceWith, retryOnConnectionFailure, schemas, schemas, timeout, transactionTimeout, version, writeTimeout
-
-
-
-
Constructor Detail
-
AnnotationAdapter
public AnnotationAdapter(Document document)
-
-
Method Detail
-
create
public Annotation create(Annotation annotation)
-
list
public Annotations list()
Fetches annotations forDocument.DEFAULT_FILE_CONTENTblob.
-
list
public Annotations list(java.lang.String xpath)
-
fetch
public Annotation fetch(java.lang.String annotationId)
-
fetchByEntityId
public Annotation fetchByEntityId(java.lang.String entityId)
-
fetchComments
public Comments fetchComments(java.util.List<java.lang.String> annotationIds)
-
update
public Annotation update(Annotation annotation)
-
update
public Annotation update(java.lang.String annotationId, Annotation annotation)
-
updateByEntityId
public Annotation updateByEntityId(java.lang.String entityId, Annotation annotation)
-
remove
public void remove(java.lang.String annotationId)
-
removeByEntityId
public void removeByEntityId(java.lang.String entityId)
-
repliesAdapter
public CommentAdapter repliesAdapter(java.lang.String commentId)
-
-