Class JCRLocalGoogleDrive.Connect

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

    protected class JCRLocalGoogleDrive.Connect
    extends Object
    Connect algorithm for Google Drive.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.exoplatform.services.cms.clouddrives.gdrive.GoogleDriveAPI api
      Google Drive service API.
      • Fields inherited from interface org.exoplatform.services.cms.clouddrives.CloudDrive.Command

        COMPLETE
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Connect()
      Create connect to Google Drive command.
    • Field Detail

      • api

        protected final org.exoplatform.services.cms.clouddrives.gdrive.GoogleDriveAPI api
        Google Drive service API.
    • Constructor Detail

      • Connect

        protected Connect()
                   throws javax.jcr.RepositoryException,
                          org.exoplatform.services.cms.clouddrives.DriveRemovedException
        Create connect to Google Drive command.
        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 void fetchChilds​(String fileId,
                                   javax.jcr.Node localFile)
                            throws org.exoplatform.services.cms.clouddrives.CloudDriveException,
                                   javax.jcr.RepositoryException
        Fetch childs.
        Parameters:
        fileId - the file id
        localFile - the local file
        Throws:
        org.exoplatform.services.cms.clouddrives.CloudDriveException - the cloud drive exception
        javax.jcr.RepositoryException - the repository exception