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
Connect algorithm for Google Drive.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.exoplatform.services.cms.clouddrives.gdrive.GoogleDriveAPIGoogle Drive service API.Fields inherited from interface org.exoplatform.services.cms.clouddrives.CloudDrive.Command
COMPLETE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidfetchChilds(String fileId, javax.jcr.Node localFile) Fetch childs.protected void
-
Field Details
-
api
protected final org.exoplatform.services.cms.clouddrives.gdrive.GoogleDriveAPI apiGoogle Drive service API.
-
-
Constructor Details
-
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 Details
-
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
-