public class NuxeoRemotingBean extends AbstractNuxeoWebService implements NuxeoRemoting
| Constructor and Description |
|---|
NuxeoRemotingBean() |
| Modifier and Type | Method and Description |
|---|---|
DocumentDescriptor[] |
getChildren(String sessionId,
String uuid)
Gets the children of the given document.
|
DocumentDescriptor |
getCurrentVersion(String sid,
String uuid)
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
NuxeoRemoting.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 parentUUID,
String type,
String[] properties) |
connect, connectOnRepository, disconnectequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconnect, disconnectpublic String getRepositoryName(String sid) throws ClientException
NuxeoRemotinggetRepositoryName in interface NuxeoRemotingsid - the session idClientExceptionpublic WsACE[] getDocumentACL(String sid, String uuid) throws ClientException
NuxeoRemotingIt includes all ACLs for each ACP.
getDocumentACL in interface NuxeoRemotinguuid - the uuid of the documentClientExceptionpublic DocumentSnapshot getDocumentSnapshot(String sid, String uuid) throws ClientException
NuxeoRemotinggetDocumentSnapshot in interface NuxeoRemotingsid - the session iduuid - the doc uuidClientExceptionpublic DocumentSnapshot getDocumentSnapshotExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
NuxeoRemotinggetDocumentSnapshotExt in interface NuxeoRemotingsid - the session iduuid - the doc uuiduseDownloadUrl - define blob export formatClientExceptionpublic WsACE[] getDocumentLocalACL(String sid, String uuid) throws ClientException
NuxeoRemotingIt includes all ACLs for each ACP.
getDocumentLocalACL in interface NuxeoRemotinguuid - the uuid of the documentClientExceptionpublic boolean hasPermission(String sid, String uuid, String permission) throws ClientException
NuxeoRemotinghasPermission in interface NuxeoRemotingClientExceptionpublic DocumentBlob[] getDocumentBlobs(String sid, String uuid) throws ClientException
NuxeoRemotinggetDocumentBlobs in interface NuxeoRemotinguuid - the uuid of the document.ClientExceptionpublic DocumentBlob[] getDocumentBlobsExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
NuxeoRemotinggetDocumentBlobsExt in interface NuxeoRemotinguuid - the uuid of the document.useDownloadUrl - defines if blob are exported as download url or as byte|[]ClientExceptionpublic String[] listUsers(String sid, int from, int to) throws ClientException
NuxeoRemotingThis method supports pagination in case of large user dbs.
Pagination is not yet working!
listUsers in interface NuxeoRemotingfrom - pagination startto - pagination stopClientExceptionpublic String[] listGroups(String sid, int from, int to) throws ClientException
NuxeoRemotingThis method supports pagination in case of large user dbs
Pagination is not yet working!
listGroups in interface NuxeoRemotingfrom - pagination startto - pagination stopClientExceptionpublic DocumentProperty[] getDocumentProperties(String sid, String uuid) throws ClientException
NuxeoRemotingAll 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.
getDocumentProperties in interface NuxeoRemotinguuid - uuid of the document.ClientExceptionpublic DocumentProperty[] getDocumentNoBlobProperties(String sid, String uuid) throws ClientException
NuxeoRemotingNuxeoRemoting.getDocumentProperties(String, String) but skips
blobs.getDocumentNoBlobProperties in interface NuxeoRemotingClientExceptionpublic DocumentDescriptor getCurrentVersion(String sid, String uuid) throws ClientException
NuxeoRemotinggetCurrentVersion in interface NuxeoRemotingClientExceptionpublic DocumentDescriptor getSourceDocument(String sid, String uid) throws ClientException
NuxeoRemotinggetSourceDocument in interface NuxeoRemotingClientExceptionpublic DocumentDescriptor[] getVersions(String sid, String uid) throws ClientException
NuxeoRemotinggetVersions in interface NuxeoRemotingClientExceptionpublic DocumentDescriptor getRootDocument(String sessionId) throws ClientException
NuxeoRemotinggetRootDocument in interface NuxeoRemotingClientExceptionpublic DocumentDescriptor getDocument(String sessionId, String uuid) throws ClientException
NuxeoRemotinggetDocument in interface NuxeoRemotingsessionId - the session iduuid - the doc uuidClientExceptionpublic DocumentDescriptor[] getChildren(String sessionId, String uuid) throws ClientException
NuxeoRemotinggetChildren in interface NuxeoRemotingsessionId - the session iduuid - the doc uuidClientExceptionpublic String[] getUsers(String sid, String parentGroup) throws ClientException
NuxeoRemotinggetUsers in interface NuxeoRemotingsid - the session idparentGroup - the parent groupClientException - if any error occurspublic String[] getGroups(String sid, String parentGroup) throws ClientException
NuxeoRemotinggetGroups in interface NuxeoRemotingsid - the session idparentGroup - the parent groupClientExceptionpublic String getRelativePathAsString(String sessionId, String uuid) throws ClientException
NuxeoRemotingExample: /Workspaces/My Workspaces/Nice Document
getRelativePathAsString in interface NuxeoRemotingsessionId - : the session iduuid - : the document uuidClientExceptionpublic String uploadDocument(String sid, String parentUUID, String type, String[] properties) throws ClientException
uploadDocument in interface NuxeoRemotingClientExceptionCopyright © 2012 Nuxeo SA. All Rights Reserved.