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, disconnect
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
connect, disconnect
public String getRepositoryName(String sid) throws ClientException
NuxeoRemoting
getRepositoryName
in interface NuxeoRemoting
sid
- the session idClientException
public WsACE[] getDocumentACL(String sid, String uuid) throws ClientException
NuxeoRemoting
It includes all ACLs for each ACP.
getDocumentACL
in interface NuxeoRemoting
uuid
- the uuid of the documentClientException
public DocumentSnapshot getDocumentSnapshot(String sid, String uuid) throws ClientException
NuxeoRemoting
getDocumentSnapshot
in interface NuxeoRemoting
sid
- the session iduuid
- the doc uuidClientException
public DocumentSnapshot getDocumentSnapshotExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
NuxeoRemoting
getDocumentSnapshotExt
in interface NuxeoRemoting
sid
- the session iduuid
- the doc uuiduseDownloadUrl
- define blob export formatClientException
public WsACE[] getDocumentLocalACL(String sid, String uuid) throws ClientException
NuxeoRemoting
It includes all ACLs for each ACP.
getDocumentLocalACL
in interface NuxeoRemoting
uuid
- the uuid of the documentClientException
public boolean hasPermission(String sid, String uuid, String permission) throws ClientException
NuxeoRemoting
hasPermission
in interface NuxeoRemoting
ClientException
public DocumentBlob[] getDocumentBlobs(String sid, String uuid) throws ClientException
NuxeoRemoting
getDocumentBlobs
in interface NuxeoRemoting
uuid
- the uuid of the document.ClientException
public DocumentBlob[] getDocumentBlobsExt(String sid, String uuid, boolean useDownloadUrl) throws ClientException
NuxeoRemoting
getDocumentBlobsExt
in interface NuxeoRemoting
uuid
- the uuid of the document.useDownloadUrl
- defines if blob are exported as download url or as byte|[]ClientException
public String[] listUsers(String sid, int from, int to) throws ClientException
NuxeoRemoting
This method supports pagination in case of large user dbs.
Pagination is not yet working!
listUsers
in interface NuxeoRemoting
from
- pagination startto
- pagination stopClientException
public String[] listGroups(String sid, int from, int to) throws ClientException
NuxeoRemoting
This method supports pagination in case of large user dbs
Pagination is not yet working!
listGroups
in interface NuxeoRemoting
from
- pagination startto
- pagination stopClientException
public DocumentProperty[] getDocumentProperties(String sid, String uuid) throws ClientException
NuxeoRemoting
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.
getDocumentProperties
in interface NuxeoRemoting
uuid
- uuid of the document.ClientException
public DocumentProperty[] getDocumentNoBlobProperties(String sid, String uuid) throws ClientException
NuxeoRemoting
NuxeoRemoting.getDocumentProperties(String, String)
but skips blobs.getDocumentNoBlobProperties
in interface NuxeoRemoting
ClientException
public DocumentDescriptor getCurrentVersion(String sid, String uuid) throws ClientException
NuxeoRemoting
getCurrentVersion
in interface NuxeoRemoting
ClientException
public DocumentDescriptor getSourceDocument(String sid, String uid) throws ClientException
NuxeoRemoting
getSourceDocument
in interface NuxeoRemoting
ClientException
public DocumentDescriptor[] getVersions(String sid, String uid) throws ClientException
NuxeoRemoting
getVersions
in interface NuxeoRemoting
ClientException
public DocumentDescriptor getRootDocument(String sessionId) throws ClientException
NuxeoRemoting
getRootDocument
in interface NuxeoRemoting
ClientException
public DocumentDescriptor getDocument(String sessionId, String uuid) throws ClientException
NuxeoRemoting
getDocument
in interface NuxeoRemoting
sessionId
- the session iduuid
- the doc uuidClientException
public DocumentDescriptor[] getChildren(String sessionId, String uuid) throws ClientException
NuxeoRemoting
getChildren
in interface NuxeoRemoting
sessionId
- the session iduuid
- the doc uuidClientException
public String[] getUsers(String sid, String parentGroup) throws ClientException
NuxeoRemoting
getUsers
in interface NuxeoRemoting
sid
- the session idparentGroup
- the parent groupClientException
- if any error occurspublic String[] getGroups(String sid, String parentGroup) throws ClientException
NuxeoRemoting
getGroups
in interface NuxeoRemoting
sid
- the session idparentGroup
- the parent groupClientException
public String getRelativePathAsString(String sessionId, String uuid) throws ClientException
NuxeoRemoting
Example: /Workspaces/My Workspaces/Nice Document
getRelativePathAsString
in interface NuxeoRemoting
sessionId
- : the session iduuid
- : the document uuidClientException
public String uploadDocument(String sid, String parentUUID, String type, String[] properties) throws ClientException
uploadDocument
in interface NuxeoRemoting
ClientException
Copyright © 2015 Nuxeo SA. All rights reserved.