A - The type of object extending this one.public abstract static class Document.AbstractAdapter<A extends Document.AbstractAdapter<A>> extends AbstractConnectable<RepositoryAPI,A>
| Modifier and Type | Field and Description |
|---|---|
protected String |
adapter |
protected String |
documentId |
protected String |
repositoryName |
api, apiClass, nuxeoClientheaderInterceptors, headerValues, okhttpBuilder, retrofit, retrofitBuilder| Modifier | Constructor and Description |
|---|---|
|
AbstractAdapter(Document document,
String adapter) |
protected |
AbstractAdapter(NuxeoClient nuxeoClient,
String repositoryName,
String documentId,
String adapter) |
| Modifier and Type | Method and Description |
|---|---|
void |
delete()
Sends a DELETE request directly on adapter url.
|
void |
delete(Map<String,Serializable> queryParams)
Sends a DELETE request directly on adapter url and filled with query parameters.
|
void |
delete(String pathSuffix)
Sends a DELETE request on adapter url suffixed by given input.
|
void |
delete(String pathSuffix,
Map<String,Serializable> queryParams)
Sends a DELETE request on adapter url suffixed by given input and filled with query parameters.
|
<O> O |
get()
Sends a GET request directly on adapter url.
|
<O> O |
get(Map<String,Serializable> queryParams)
Sends a GET request directly on adapter url and filled with query parameters.
|
<O> O |
get(String pathSuffix)
Sends a GET request on adapter url suffixed by given input.
|
<O> O |
get(String pathSuffix,
Map<String,Serializable> queryParams)
Sends a GET request on adapter url suffixed by given input and filled with query parameters.
|
String |
getDocumentId() |
<O> O |
post(Map<String,Serializable> queryParams,
O object)
Sends a POST request directly on adapter url and filled with query parameters.
|
<O> O |
post(O object)
Sends a POST request directly on adapter url.
|
<O> O |
post(String pathSuffix,
Map<String,Serializable> queryParams,
O object)
Sends a POST request on adapter url suffixed by given input and filled with query parameters.
|
<O> O |
post(String pathSuffix,
O object)
Sends a POST request on adapter url suffixed by given input.
|
<O> O |
put(Map<String,Serializable> queryParams,
O object)
Sends a PUT request directly on adapter url and filled with query parameters.
|
<O> O |
put(O object)
Sends a PUT request directly on adapter url.
|
<O> O |
put(String pathSuffix,
Map<String,Serializable> queryParams,
O object)
Sends a PUT request on adapter url suffixed by given input and filled with query parameters.
|
<O> O |
put(String pathSuffix,
O object)
Sends a PUT request on adapter url suffixed by given input.
|
buildRetrofit, fetchResponse, fetchResponse, reconnectWithconnectTimeout, depth, enrichers, enrichers, enrichersForDocument, fetchProperties, fetchProperties, fetchPropertiesForDocument, fetchPropertiesForGroup, header, header, header, header, header, header, header, readTimeout, replaceWith, schemas, schemas, timeout, transactionTimeout, versionprotected final String repositoryName
protected final String documentId
protected final String adapter
protected AbstractAdapter(NuxeoClient nuxeoClient, String repositoryName, String documentId, String adapter)
public String getDocumentId()
public <O> O get()
public <O> O get(String pathSuffix)
pathSuffix - the path to append to the end of hit adapterpublic <O> O get(Map<String,Serializable> queryParams)
queryParams - the query parameters to append to urlpublic <O> O get(String pathSuffix, Map<String,Serializable> queryParams)
pathSuffix - the path to append to the end of hit adapterqueryParams - the query parameters to append to urlpublic <O> O post(O object)
object - the object to send as bodypublic <O> O post(String pathSuffix, O object)
pathSuffix - the path to append to the end of hit adapterobject - the object to send as bodypublic <O> O post(Map<String,Serializable> queryParams, O object)
queryParams - the query parameters to append to urlobject - the object to send as bodypublic <O> O post(String pathSuffix, Map<String,Serializable> queryParams, O object)
pathSuffix - the path to append to the end of hit adapterqueryParams - the query parameters to append to urlobject - the object to send as bodypublic <O> O put(O object)
object - the object to send as bodypublic <O> O put(String pathSuffix, O object)
pathSuffix - the path to append to the end of hit adapterobject - the object to send as bodypublic <O> O put(Map<String,Serializable> queryParams, O object)
queryParams - the query parameters to append to urlobject - the object to send as bodypublic <O> O put(String pathSuffix, Map<String,Serializable> queryParams, O object)
pathSuffix - the path to append to the end of hit adapterqueryParams - the query parameters to append to urlobject - the object to send as bodypublic void delete()
public void delete(String pathSuffix)
pathSuffix - the path to append to the end of hit adapterpublic void delete(Map<String,Serializable> queryParams)
queryParams - the query parameters to append to urlpublic void delete(String pathSuffix, Map<String,Serializable> queryParams)
pathSuffix - the path to append to the end of hit adapterqueryParams - the query parameters to append to urlCopyright © 2018 Nuxeo. All rights reserved.