Class JCRLocalGoogleDrive.Connect
- java.lang.Object
-
- org.exoplatform.services.cms.clouddrives.gdrive.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.GoogleDriveAPIapiGoogle Drive service API.
-
Constructor Summary
Constructors Modifier Constructor Description protectedConnect()Create connect to Google Drive command.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfetchChilds(String fileId, javax.jcr.Node localFile)Fetch childs.protected voidfetchFiles()
-
-
-
Constructor Detail
-
Connect
protected Connect() throws javax.jcr.RepositoryException, org.exoplatform.services.cms.clouddrives.DriveRemovedExceptionCreate connect to Google Drive command.- Throws:
javax.jcr.RepositoryException- the repository exceptionorg.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.CloudDriveExceptionjavax.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 idlocalFile- the local file- Throws:
org.exoplatform.services.cms.clouddrives.CloudDriveException- the cloud drive exceptionjavax.jcr.RepositoryException- the repository exception
-
-