|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.clouddrive.gdrive.JCRLocalGoogleDrive.Sync
protected class JCRLocalGoogleDrive.Sync
Sync algorithm for Google Drive.
| Field Summary | |
|---|---|
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. |
| Fields inherited from interface org.exoplatform.clouddrive.CloudDrive.Command |
|---|
COMPLETE |
| Constructor Summary | |
|---|---|
protected |
JCRLocalGoogleDrive.Sync()
Create command for Google Drive synchronization. |
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.exoplatform.clouddrive.gdrive.GoogleDriveAPI api
protected final Set<javax.jcr.Node> synced
protected org.exoplatform.clouddrive.gdrive.GoogleDriveAPI.ChangesIterator changes
| Constructor Detail |
|---|
protected JCRLocalGoogleDrive.Sync()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryException
org.exoplatform.clouddrive.DriveRemovedException| Method Detail |
|---|
protected void syncFiles()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException
protected void syncNext()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException
protected void deleteFile(String fileId)
throws javax.jcr.RepositoryException
fileId - String
javax.jcr.RepositoryException
protected 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.CloudDriveException
IOException
javax.jcr.RepositoryException
InterruptedExceptionprotected String[] getParents(com.google.api.services.drive.model.File gfile)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||