Class JCRLocalBoxDrive.FileAPI

  • All Implemented Interfaces:
    org.exoplatform.services.cms.clouddrives.CloudFileAPI
    Enclosing class:
    JCRLocalBoxDrive

    protected class JCRLocalBoxDrive.FileAPI
    extends Object
    The Class FileAPI.
    • Field Detail

      • api

        protected final BoxAPI api
        Box service API.
    • Method Detail

      • createFile

        public org.exoplatform.services.cms.clouddrives.CloudFile createFile​(javax.jcr.Node fileNode,
                                                                             Calendar created,
                                                                             Calendar modified,
                                                                             String mimeType,
                                                                             InputStream content)
                                                                      throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                             javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • createFolder

        public org.exoplatform.services.cms.clouddrives.CloudFile createFolder​(javax.jcr.Node folderNode,
                                                                               Calendar created)
                                                                        throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                               javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • updateFile

        public org.exoplatform.services.cms.clouddrives.CloudFile updateFile​(javax.jcr.Node fileNode,
                                                                             Calendar modified)
                                                                      throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                             javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • updateFolder

        public org.exoplatform.services.cms.clouddrives.CloudFile updateFolder​(javax.jcr.Node folderNode,
                                                                               Calendar modified)
                                                                        throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                               javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • updateFileContent

        public org.exoplatform.services.cms.clouddrives.CloudFile updateFileContent​(javax.jcr.Node fileNode,
                                                                                    Calendar modified,
                                                                                    String mimeType,
                                                                                    InputStream content)
                                                                             throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                                    javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • copyFile

        public org.exoplatform.services.cms.clouddrives.CloudFile copyFile​(javax.jcr.Node srcFileNode,
                                                                           javax.jcr.Node destFileNode)
                                                                    throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                           javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • copyFolder

        public org.exoplatform.services.cms.clouddrives.CloudFile copyFolder​(javax.jcr.Node srcFolderNode,
                                                                             javax.jcr.Node destFolderNode)
                                                                      throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                             javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • removeFile

        public boolean removeFile​(String id)
                           throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                  javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • removeFolder

        public boolean removeFolder​(String id)
                             throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                    javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • trashFile

        public boolean trashFile​(String id)
                          throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                 javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • trashFolder

        public boolean trashFolder​(String id)
                            throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                   javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • untrashFile

        public org.exoplatform.services.cms.clouddrives.CloudFile untrashFile​(javax.jcr.Node fileNode)
                                                                       throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                              javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • untrashFolder

        public org.exoplatform.services.cms.clouddrives.CloudFile untrashFolder​(javax.jcr.Node folderNode)
                                                                         throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                                javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • isTrashSupported

        public boolean isTrashSupported()
      • restore

        public org.exoplatform.services.cms.clouddrives.CloudFile restore​(String id,
                                                                          String path)
                                                                   throws org.exoplatform.services.cms.clouddrives.NotFoundException,
                                                                          org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                                          javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.NotFoundException
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException