Class JCRLocalBoxDrive.Connect

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

    protected class JCRLocalBoxDrive.Connect
    extends Object
    Connect algorithm for Box drive.
    • Field Detail

      • api

        protected final BoxAPI api
        The api.
    • Constructor Detail

      • Connect

        protected Connect()
                   throws javax.jcr.RepositoryException,
                          org.exoplatform.services.cms.clouddrives.DriveRemovedException
        Instantiates a new connect.
        Throws:
        javax.jcr.RepositoryException - the repository exception
        org.exoplatform.services.cms.clouddrives.DriveRemovedException - the drive removed exception
    • Method Detail

      • fetchFiles

        protected void fetchFiles()
                           throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                  javax.jcr.RepositoryException
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException
        javax.jcr.RepositoryException
      • fetchChilds

        protected com.box.sdk.BoxFolder.Info fetchChilds​(String fileId,
                                                         javax.jcr.Node parent)
                                                  throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                                         javax.jcr.RepositoryException
        Fetch childs.
        Parameters:
        fileId - the file id
        parent - the parent
        Returns:
        the box folder. info
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException - the cloud drive exception
        javax.jcr.RepositoryException - the repository exception