public interface NuxeoRemoting extends BaseNuxeoWebService
| Modifier and Type | Method and Description |
|---|---|
DocumentDescriptor[] |
getChildren(String sessionId,
String uuid)
Gets the children of the given document.
|
DocumentDescriptor |
getCurrentVersion(String sid,
String uid)
Gets the current version of the given document.
|
DocumentDescriptor |
getDocument(String sessionId,
String uuid)
Gets the doc descriptor given the doc UUID.
|
WsACE[] |
getDocumentACL(String sid,
String uuid)
Returns the merged ACL of the document (contains all ACEs defined on the
document and its parents).
|
DocumentBlob[] |
getDocumentBlobs(String sid,
String uuid)
Returns the document blobs only using byte[] format
|
DocumentBlob[] |
getDocumentBlobsExt(String sid,
String uuid,
boolean useDownloadUrl)
Returns the document blobs only.
|
WsACE[] |
getDocumentLocalACL(String sid,
String uuid)
Returns the merged ACL of the document (contains all ACEs defined on the
document, filtering the inherited ones).
|
DocumentProperty[] |
getDocumentNoBlobProperties(String sid,
String uuid)
Same as
getDocumentProperties(String, String) but skips
blobs. |
DocumentProperty[] |
getDocumentProperties(String sid,
String uuid)
Returns the document properties.
|
DocumentSnapshot |
getDocumentSnapshot(String sid,
String uuid)
Gets all properties and ACLs from a document
uses byte[] format to export blob
|
DocumentSnapshot |
getDocumentSnapshotExt(String sid,
String uuid,
boolean useDownloadUrl)
Gets all properties and ACLs from a document
|
String[] |
getGroups(String sid,
String parentGroup)
Gets all sub-groups inside the given group.
|
String |
getRelativePathAsString(String sessionId,
String uuid)
Returns the relative path as a displayable path with parent titles.
|
String |
getRepositoryName(String sid)
Gets the current repository name.
|
DocumentDescriptor |
getRootDocument(String sessionId)
Gets the root document descriptor.
|
DocumentDescriptor |
getSourceDocument(String sid,
String uid)
Gets the document that created the version specified by the given uid.
|
String[] |
getUsers(String sid,
String parentGroup)
Get all users inside the given group.
|
DocumentDescriptor[] |
getVersions(String sid,
String uid)
Gets the versions of the given document.
|
boolean |
hasPermission(String sid,
String uuid,
String permission)
Checks the given permission for the current user on the given document.
|
String[] |
listGroups(String sid,
int from,
int to)
Return the list of all groups.
|
String[] |
listUsers(String sid,
int from,
int to)
Returns the list of all users.
|
String |
uploadDocument(String sid,
String path,
String type,
String[] properties) |
connect, disconnectString getRepositoryName(String sid) throws ClientException
sid - the session idClientExceptionDocumentDescriptor getRootDocument(String sessionId) throws ClientException
ClientExceptionDocumentDescriptor getDocument(String sessionId, String uuid) throws ClientException
sessionId - the session iduuid - the doc uuidClientExceptionDocumentDescriptor[] getChildren(String sessionId, String uuid) throws ClientException
sessionId - the session iduuid - the doc uuidClientExceptionString getRelativePathAsString(String sessionId, String uuid) throws ClientException
Example: /Workspaces/My Workspaces/Nice Document
sessionId - : the session iduuid - : the document uuidClientExceptionDocumentDescriptor[] getVersions(String sid, String uid) throws ClientException
sid - uid - ClientExceptionDocumentDescriptor getCurrentVersion(String sid, String uid) throws ClientException
sid - ClientExceptionDocumentDescriptor getSourceDocument(String sid, String uid) throws ClientException
sid - uid - ClientExceptionDocumentProperty[] getDocumentProperties(String sid, String uuid) throws ClientException
All property are returned even blobs. All values are converted to strings.
It includes the perm link of the document.
No need to includes blobs here. See the dedicated API.
uuid - uuid of the document.ClientExceptionDocumentProperty[] getDocumentNoBlobProperties(String sid, String uuid) throws ClientException
getDocumentProperties(String, String) but skips
blobs.sid - uuid - ClientExceptionDocumentBlob[] getDocumentBlobs(String sid, String uuid) throws ClientException
uuid - the uuid of the document.ClientExceptionDocumentBlob[] getDocumentBlobsExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
uuid - the uuid of the document.useDownloadUrl - defines if blob are exported as download url or as byte|[]ClientExceptionWsACE[] getDocumentACL(String sid, String uuid) throws ClientException
It includes all ACLs for each ACP.
uuid - the uuid of the documentClientExceptionWsACE[] getDocumentLocalACL(String sid, String uuid) throws ClientException
It includes all ACLs for each ACP.
uuid - the uuid of the documentClientExceptionboolean hasPermission(String sid, String uuid, String permission) throws ClientException
sid - uuid - permission - ClientExceptionString[] listUsers(String sid, int from, int to) throws ClientException
This method supports pagination in case of large user dbs.
Pagination is not yet working!
from - pagination startto - pagination stopClientExceptionString[] listGroups(String sid, int from, int to) throws ClientException
This method supports pagination in case of large user dbs
Pagination is not yet working!
from - pagination startto - pagination stopClientExceptionString[] getUsers(String sid, String parentGroup) throws ClientException
sid - the session idparentGroup - the parent groupClientException - if any error occursString[] getGroups(String sid, String parentGroup) throws ClientException
sid - the session idparentGroup - the parent groupClientExceptionString uploadDocument(String sid, String path, String type, String[] properties) throws ClientException
ClientExceptionDocumentSnapshot getDocumentSnapshot(String sid, String uuid) throws ClientException
sid - the session iduuid - the doc uuidClientExceptionDocumentSnapshot getDocumentSnapshotExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
sid - the session iduuid - the doc uuiduseDownloadUrl - define blob export formatClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.