protected class JCRLocalCMISDrive.FileAPI extends Object implements JCRLocalCMISDrive.LocalFile
CloudFileAPI implementation.| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalCMISDrive.FileAPI() |
| Modifier and Type | Method and Description |
|---|---|
String |
copyFile(javax.jcr.Node srcFileNode,
javax.jcr.Node destFileNode) |
String |
copyFolder(javax.jcr.Node srcFolderNode,
javax.jcr.Node destFolderNode) |
String |
createFile(javax.jcr.Node fileNode,
Calendar created,
Calendar modified,
String mimeType,
InputStream content) |
String |
createFolder(javax.jcr.Node folderNode,
Calendar created) |
String |
findRemoteParent(String fileId,
Set<String> remoteParents)
Find an Id of remote parent not containing in locals of the file referenced by given Id.
|
boolean |
isTrashSupported() |
void |
removeFile(String id) |
void |
removeFolder(String id) |
org.exoplatform.clouddrive.jcr.JCRLocalCloudFile |
restore(String id,
String path) |
boolean |
trashFile(String id) |
boolean |
trashFolder(String id) |
boolean |
untrashFile(javax.jcr.Node fileNode) |
boolean |
untrashFolder(javax.jcr.Node folderNode) |
void |
updateFile(javax.jcr.Node fileNode,
Calendar modified) |
void |
updateFileContent(javax.jcr.Node fileNode,
Calendar modified,
String mimeType,
InputStream content) |
void |
updateFolder(javax.jcr.Node folderNode,
Calendar modified) |
protected final CMISAPI api
public String findRemoteParent(String fileId, Set<String> remoteParents) throws CMISException
findRemoteParent in interface JCRLocalCMISDrive.LocalFilefileId - String file IdremoteParents - Set of strings with Ids of remote parentsnull if remote parent not foundCMISExceptionpublic String createFile(javax.jcr.Node fileNode, Calendar created, Calendar modified, String mimeType, InputStream content) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
createFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic String createFolder(javax.jcr.Node folderNode, Calendar created) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
createFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic void updateFile(javax.jcr.Node fileNode,
Calendar modified)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
updateFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic void updateFolder(javax.jcr.Node folderNode,
Calendar modified)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
updateFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic void updateFileContent(javax.jcr.Node fileNode,
Calendar modified,
String mimeType,
InputStream content)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
updateFileContent in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic String copyFile(javax.jcr.Node srcFileNode, javax.jcr.Node destFileNode) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
copyFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic String copyFolder(javax.jcr.Node srcFolderNode, javax.jcr.Node destFolderNode) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
copyFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic void removeFile(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
removeFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic void removeFolder(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
removeFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean trashFile(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
trashFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean trashFolder(String id) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
trashFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean untrashFile(javax.jcr.Node fileNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
untrashFile in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean untrashFolder(javax.jcr.Node folderNode)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
untrashFolder in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionpublic boolean isTrashSupported()
isTrashSupported in interface org.exoplatform.clouddrive.CloudFileAPIpublic org.exoplatform.clouddrive.jcr.JCRLocalCloudFile restore(String id, String path) throws org.exoplatform.clouddrive.NotFoundException, org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
restore in interface org.exoplatform.clouddrive.CloudFileAPIorg.exoplatform.clouddrive.NotFoundExceptionorg.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionCopyright © 2003–2014 eXo Platform SAS. All rights reserved.