protected class JCRLocalGoogleDrive.Sync extends Object
| Modifier and Type | Field and Description |
|---|---|
protected org.exoplatform.clouddrive.gdrive.GoogleDriveAPI |
api
Google Drive service API.
|
protected org.exoplatform.clouddrive.gdrive.GoogleDriveAPI.ChangesIterator |
changes |
protected Set<javax.jcr.Node> |
synced
Existing files being synchronized with cloud.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalGoogleDrive.Sync()
Create command for Google Drive synchronization.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteFile(String fileId)
Remove file's node.
|
protected String[] |
getParents(com.google.api.services.drive.model.File gfile) |
protected void |
syncFiles() |
protected void |
syncNext() |
protected void |
updateFile(com.google.api.services.drive.model.File gf,
String[] parentIds)
Create or update file's node.
|
protected final org.exoplatform.clouddrive.gdrive.GoogleDriveAPI api
protected final Set<javax.jcr.Node> synced
protected org.exoplatform.clouddrive.gdrive.GoogleDriveAPI.ChangesIterator changes
protected JCRLocalGoogleDrive.Sync()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.DriveRemovedExceptionprotected void syncFiles()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void syncNext()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void deleteFile(String fileId) throws javax.jcr.RepositoryException
fileId - Stringjavax.jcr.RepositoryExceptionprotected void updateFile(com.google.api.services.drive.model.File gf,
String[] parentIds)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
gf - FileparentIds - array of Ids of parents (folders)org.exoplatform.clouddrive.CloudDriveExceptionIOExceptionjavax.jcr.RepositoryExceptionInterruptedExceptionprotected String[] getParents(com.google.api.services.drive.model.File gfile)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.