org.exoplatform.clouddrive.cmis
Class JCRLocalCMISDrive.FileAPI

java.lang.Object
  extended by org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.FileAPI
All Implemented Interfaces:
org.exoplatform.clouddrive.CloudFileAPI
Enclosing class:
JCRLocalCMISDrive

protected class JCRLocalCMISDrive.FileAPI
extends Object

CloudFileAPI implementation.


Nested Class Summary
protected  class JCRLocalCMISDrive.FileAPI.ContextLocalFile
           
 
Field Summary
protected  CMISAPI api
          Internal API.
 
Constructor Summary
protected JCRLocalCMISDrive.FileAPI()
           
 
Method Summary
protected  JCRLocalCMISDrive.LocalFile context(String fileId, javax.jcr.Node fileNode)
           
 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 getVersionSeriesCheckedOutId(javax.jcr.Node node)
          Value of locally stored cmiscd:versionSeriesCheckedOutId or PathNotFoundException if property cannot be found.
protected  String getVersionSeriesId(javax.jcr.Node fileNode)
          Value of locally stored cmiscd:versionSeriesId or PathNotFoundException if property cannot be found.
 boolean isTrashSupported()
          
 boolean removeFile(String id)
          
 boolean removeFolder(String id)
          
 org.exoplatform.clouddrive.jcr.JCRLocalCloudFile restore(String id, String path)
           
 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)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

api

protected final CMISAPI api
Internal API.

Constructor Detail

JCRLocalCMISDrive.FileAPI

protected JCRLocalCMISDrive.FileAPI()
Method Detail

context

protected JCRLocalCMISDrive.LocalFile context(String fileId,
                                              javax.jcr.Node fileNode)

getVersionSeriesId

protected String getVersionSeriesId(javax.jcr.Node fileNode)
                             throws javax.jcr.PathNotFoundException,
                                    javax.jcr.RepositoryException
Value of locally stored cmiscd:versionSeriesId or PathNotFoundException if property cannot be found.

Parameters:
fileNode - Node
Returns:
String with value of cmiscd:versionSeriesId
Throws:
javax.jcr.PathNotFoundException - if cmiscd:versionSeriesId not found
javax.jcr.RepositoryException - on storage error

getVersionSeriesCheckedOutId

protected String getVersionSeriesCheckedOutId(javax.jcr.Node node)
                                       throws javax.jcr.PathNotFoundException,
                                              javax.jcr.RepositoryException
Value of locally stored cmiscd:versionSeriesCheckedOutId or PathNotFoundException if property cannot be found.

Parameters:
fileNode - Node
Returns:
String with value of cmiscd:versionSeriesCheckedOutId
Throws:
javax.jcr.PathNotFoundException - if cmiscd:versionSeriesCheckedOutId not found
javax.jcr.RepositoryException - on storage error

createFile

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

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

createFolder

public org.exoplatform.clouddrive.CloudFile createFolder(javax.jcr.Node folderNode,
                                                         Calendar created)
                                                  throws org.exoplatform.clouddrive.CloudDriveException,
                                                         javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

updateFile

public org.exoplatform.clouddrive.CloudFile updateFile(javax.jcr.Node fileNode,
                                                       Calendar modified)
                                                throws org.exoplatform.clouddrive.CloudDriveException,
                                                       javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

updateFolder

public org.exoplatform.clouddrive.CloudFile updateFolder(javax.jcr.Node folderNode,
                                                         Calendar modified)
                                                  throws org.exoplatform.clouddrive.CloudDriveException,
                                                         javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

updateFileContent

public org.exoplatform.clouddrive.CloudFile updateFileContent(javax.jcr.Node fileNode,
                                                              Calendar modified,
                                                              String mimeType,
                                                              InputStream content)
                                                       throws org.exoplatform.clouddrive.CloudDriveException,
                                                              javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

copyFile

public org.exoplatform.clouddrive.CloudFile copyFile(javax.jcr.Node srcFileNode,
                                                     javax.jcr.Node destFileNode)
                                              throws org.exoplatform.clouddrive.CloudDriveException,
                                                     javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

copyFolder

public org.exoplatform.clouddrive.CloudFile copyFolder(javax.jcr.Node srcFolderNode,
                                                       javax.jcr.Node destFolderNode)
                                                throws org.exoplatform.clouddrive.CloudDriveException,
                                                       javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

removeFile

public boolean removeFile(String id)
                   throws org.exoplatform.clouddrive.CloudDriveException,
                          javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

removeFolder

public boolean removeFolder(String id)
                     throws org.exoplatform.clouddrive.CloudDriveException,
                            javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

trashFile

public boolean trashFile(String id)
                  throws org.exoplatform.clouddrive.CloudDriveException,
                         javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

trashFolder

public boolean trashFolder(String id)
                    throws org.exoplatform.clouddrive.CloudDriveException,
                           javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

untrashFile

public org.exoplatform.clouddrive.CloudFile untrashFile(javax.jcr.Node fileNode)
                                                 throws org.exoplatform.clouddrive.CloudDriveException,
                                                        javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

untrashFolder

public org.exoplatform.clouddrive.CloudFile untrashFolder(javax.jcr.Node folderNode)
                                                   throws org.exoplatform.clouddrive.CloudDriveException,
                                                          javax.jcr.RepositoryException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException

isTrashSupported

public boolean isTrashSupported()


restore

public org.exoplatform.clouddrive.jcr.JCRLocalCloudFile restore(String id,
                                                                String path)
                                                         throws org.exoplatform.clouddrive.NotFoundException,
                                                                org.exoplatform.clouddrive.CloudDriveException,
                                                                javax.jcr.RepositoryException
Throws:
org.exoplatform.clouddrive.NotFoundException
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.