public interface DocumentService
| Modifier and Type | Method and Description |
|---|---|
Document |
findDocById(String id) |
default String |
getDocumentUrlInPersonalDocuments(javax.jcr.Node currentNode,
String username)
return the URL of the shared document in the Shared Personal Documents folder of the user destination
|
default String |
getDocumentUrlInSpaceDocuments(javax.jcr.Node currentNode,
String spaceId)
return the URL of the shared document in the Shared Documents folder of the space destination
|
DriveData |
getDriveOfNode(String nodePath)
Get the drive containing the node with the given node path, for the current user.
|
DriveData |
getDriveOfNode(String nodePath,
String userId,
List<String> memberships)
Get the drive containing the node with the given node path.
|
String |
getLinkInDocumentsApp(String nodePath)
Get the link to display a document in the Documents app.
|
String |
getLinkInDocumentsApp(String nodePath,
DriveData drive)
Get the link to display a document in the Documents app in the given drive.
|
String |
getShortLinkInDocumentsApp(String workspaceName,
String nodeId)
Get the short link to display a document in the Documents app by its id.
|
Document findDocById(String id) throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionString getShortLinkInDocumentsApp(String workspaceName, String nodeId) throws Exception
workspaceName - The workspace of the nodenodeId - The id of the nodeExceptiondefault String getDocumentUrlInPersonalDocuments(javax.jcr.Node currentNode, String username) throws Exception
currentNode - username - Exceptiondefault String getDocumentUrlInSpaceDocuments(javax.jcr.Node currentNode, String spaceId) throws Exception
currentNode - spaceId - ExceptionString getLinkInDocumentsApp(String nodePath) throws Exception
nodePath - The path of the nodeExceptionString getLinkInDocumentsApp(String nodePath, DriveData drive) throws Exception
nodePath - The path of the nodedrive - The drive to useExceptionDriveData getDriveOfNode(String nodePath) throws Exception
nodePath - The path of the nodeExceptionDriveData getDriveOfNode(String nodePath, String userId, List<String> memberships) throws Exception
nodePath - The path of the nodeuserId - The user idmemberships - The user membershipsExceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.