Package org.nuxeo.client.objects.comment
Class CommentAdapter
- java.lang.Object
-
- org.nuxeo.client.objects.AbstractBase<B>
-
- org.nuxeo.client.objects.AbstractConnectable<RepositoryAPI,A>
-
- org.nuxeo.client.objects.Document.AbstractAdapter<CommentAdapter>
-
- org.nuxeo.client.objects.comment.CommentAdapter
-
- All Implemented Interfaces:
Connectable
public class CommentAdapter extends Document.AbstractAdapter<CommentAdapter>
This API is available since Nuxeo Server 10.3.- Since:
- 3.2
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringNAME-
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 Modifier Constructor Description protectedCommentAdapter(NuxeoClient nuxeoClient, java.lang.String repositoryName, java.lang.String documentId)CommentAdapter(Document document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Commentcreate(Comment comment)Commentfetch(java.lang.String commentId)CommentfetchByEntityId(java.lang.String entityId)Commentslist()Commentslist(long pageSize, long currentPageIndex)voidremove(java.lang.String commentId)voidremoveByEntityId(java.lang.String entityId)CommentAdapterrepliesAdapter(java.lang.String parentId)Commentupdate(java.lang.String commentId, Comment comment)Commentupdate(Comment comment)CommentupdateByEntityId(java.lang.String entityId, Comment comment)-
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
-
-
-
-
Field Detail
-
NAME
protected static final java.lang.String NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CommentAdapter
public CommentAdapter(Document document)
-
CommentAdapter
protected CommentAdapter(NuxeoClient nuxeoClient, java.lang.String repositoryName, java.lang.String documentId)
-
-
Method Detail
-
list
public Comments list()
-
list
public Comments list(long pageSize, long currentPageIndex)
-
fetch
public Comment fetch(java.lang.String commentId)
-
fetchByEntityId
public Comment fetchByEntityId(java.lang.String entityId)
-
remove
public void remove(java.lang.String commentId)
-
removeByEntityId
public void removeByEntityId(java.lang.String entityId)
-
repliesAdapter
public CommentAdapter repliesAdapter(java.lang.String parentId)
-
-