protected class JCRLocalDropboxDrive.FileAPI extends Object
CloudFileAPI implementation for Dropbox synchronization.| Modifier and Type | Field and Description |
|---|---|
protected DropboxAPI |
api
Internal API.
|
| Modifier and Type | Method and Description |
|---|---|
protected JCRLocalDropboxDrive.MetadataInfo |
copy(javax.jcr.Node sourceNode,
javax.jcr.Node destNode)
Copy.
|
org.exoplatform.clouddrive.CloudFile |
copyFile(javax.jcr.Node srcFileNode,
javax.jcr.Node destFileNode) |
org.exoplatform.clouddrive.CloudFile |
copyFolder(javax.jcr.Node srcFolderNode,
javax.jcr.Node destFolderNode) |
org.exoplatform.clouddrive.CloudFile |
createFile(javax.jcr.Node fileNode,
Calendar created,
Calendar modified,
String mimeType,
InputStream content) |
org.exoplatform.clouddrive.CloudFile |
createFolder(javax.jcr.Node folderNode,
Calendar created) |
protected String |
getRev(javax.jcr.Node fileNode)
Gets the rev.
|
boolean |
isTrashSupported() |
protected JCRLocalDropboxDrive.MetadataInfo |
move(javax.jcr.Node node)
Move remote file to hierarchy of given node.
|
boolean |
removeFile(String id) |
boolean |
removeFolder(String id) |
protected void |
resetSharing(javax.jcr.Node fileNode)
Reset Dropbox file direct/shared link to force generation of a new one
within new dbxPath.
|
org.exoplatform.clouddrive.CloudFile |
restore(String id,
String nodePath) |
boolean |
trashFile(String id) |
boolean |
trashFolder(String id) |
org.exoplatform.clouddrive.CloudFile |
untrashFile(javax.jcr.Node fileNode) |
org.exoplatform.clouddrive.CloudFile |
untrashFolder(javax.jcr.Node folderNode) |
org.exoplatform.clouddrive.CloudFile |
updateFile(javax.jcr.Node fileNode,
Calendar modified) |
org.exoplatform.clouddrive.CloudFile |
updateFileContent(javax.jcr.Node fileNode,
Calendar modified,
String mimeType,
InputStream content) |
org.exoplatform.clouddrive.CloudFile |
updateFolder(javax.jcr.Node folderNode,
Calendar modified) |
protected void |
updateSubtree(javax.jcr.Node folderNode)
Update subtree for Dropbox properties saved in the nodes.
|
protected org.exoplatform.clouddrive.CloudFile |
uploadFile(javax.jcr.Node fileNode,
Calendar created,
Calendar modified,
String mimeType,
InputStream content,
boolean update)
Upload file.
|
protected final DropboxAPI api
public org.exoplatform.clouddrive.CloudFile createFile(javax.jcr.Node fileNode,
Calendar created,
Calendar modified,
String mimeType,
InputStream content)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile createFolder(javax.jcr.Node folderNode,
Calendar created)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile updateFile(javax.jcr.Node fileNode,
Calendar modified)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile updateFolder(javax.jcr.Node folderNode,
Calendar modified)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile updateFileContent(javax.jcr.Node fileNode,
Calendar modified,
String mimeType,
InputStream content)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile copyFile(javax.jcr.Node srcFileNode,
javax.jcr.Node destFileNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile copyFolder(javax.jcr.Node srcFolderNode,
javax.jcr.Node destFolderNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean removeFile(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean removeFolder(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean trashFile(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean trashFolder(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile untrashFile(javax.jcr.Node fileNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic org.exoplatform.clouddrive.CloudFile untrashFolder(javax.jcr.Node folderNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean isTrashSupported()
public org.exoplatform.clouddrive.CloudFile restore(String id, String nodePath) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected String getRev(javax.jcr.Node fileNode) throws javax.jcr.RepositoryException
fileNode - the file nodejavax.jcr.RepositoryException - the repository exceptionprotected org.exoplatform.clouddrive.CloudFile uploadFile(javax.jcr.Node fileNode,
Calendar created,
Calendar modified,
String mimeType,
InputStream content,
boolean update)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
fileNode - the file nodecreated - the createdmodified - the modifiedmimeType - the mime typecontent - the contentupdate - the updateorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionjavax.jcr.RepositoryException - the repository exceptionprotected JCRLocalDropboxDrive.MetadataInfo move(javax.jcr.Node node) throws javax.jcr.RepositoryException, DropboxException, org.exoplatform.clouddrive.RefreshAccessException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.NotAcceptableException, org.exoplatform.clouddrive.RetryLaterException
node - the nodeJCRLocalDropboxDrive.MetadataInfo instancejavax.jcr.RepositoryException - the repository exceptionDropboxException - the dropbox exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.NotAcceptableException - the not acceptable exceptionorg.exoplatform.clouddrive.RetryLaterException - the retry later exceptionprotected void updateSubtree(javax.jcr.Node folderNode)
throws javax.jcr.RepositoryException
folderNode - the folder nodejavax.jcr.RepositoryException - the repository exceptionprotected void resetSharing(javax.jcr.Node fileNode)
throws javax.jcr.RepositoryException
fileNode - the file nodejavax.jcr.RepositoryException - the repository exceptionprotected JCRLocalDropboxDrive.MetadataInfo copy(javax.jcr.Node sourceNode, javax.jcr.Node destNode) throws javax.jcr.RepositoryException, DropboxException, org.exoplatform.clouddrive.RefreshAccessException, org.exoplatform.clouddrive.ConflictException, org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.RetryLaterException, org.exoplatform.clouddrive.NotAcceptableException
sourceNode - the source nodedestNode - the dest nodejavax.jcr.RepositoryException - the repository exceptionDropboxException - the dropbox exceptionorg.exoplatform.clouddrive.RefreshAccessException - the refresh access exceptionorg.exoplatform.clouddrive.ConflictException - the conflict exceptionorg.exoplatform.clouddrive.NotFoundException - the not found exceptionorg.exoplatform.clouddrive.RetryLaterException - the retry later exceptionorg.exoplatform.clouddrive.NotAcceptableException - the not acceptable exceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.