protected class JCRLocalDropboxDrive.EventsSync extends Object
SyncCommand based on an abstract deltas queue proposed and maintained by the
cloud service.| Modifier and Type | Field and Description |
|---|---|
protected DropboxAPI |
api
Internal API.
|
protected Map<String,javax.jcr.Node> |
pathNodes
Nodes read/created by Dropbox path in this sync.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalDropboxDrive.EventsSync()
Create command for Template synchronization.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local) |
protected javax.jcr.Node |
getExistingAncestor(JCRLocalDropboxDrive.DbxFileInfo file)
Find nearest existing ancestor of the file using its Dropbox path (lower-case or natural form).
|
protected javax.jcr.Node |
getFile(JCRLocalDropboxDrive.DbxFileInfo file)
Find file node by its Dropbox path (lower-case or natural form).
|
protected javax.jcr.Node |
getParent(JCRLocalDropboxDrive.DbxFileInfo file)
Return parent node of the given file path.
|
protected void |
readLocalNodes()
Deprecated.
|
protected javax.jcr.Node |
readNode(JCRLocalDropboxDrive.DbxFileInfo file) |
protected boolean |
removeFile(JCRLocalDropboxDrive.DbxFileInfo file)
Remove file or folder node by its Dropbox path (lower-case or natural form).
|
protected void |
syncFiles() |
protected final DropboxAPI api
protected JCRLocalDropboxDrive.EventsSync()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.DriveRemovedExceptionprotected void syncFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected void apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
@Deprecated protected void readLocalNodes() throws javax.jcr.RepositoryException
javax.jcr.RepositoryExceptionprotected javax.jcr.Node getFile(JCRLocalDropboxDrive.DbxFileInfo file) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
idPath - StringNodejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected boolean removeFile(JCRLocalDropboxDrive.DbxFileInfo file) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
file - JCRLocalDropboxDrive.DbxFileInfotrue if file found and successfully removed, false otherwisejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected javax.jcr.Node getExistingAncestor(JCRLocalDropboxDrive.DbxFileInfo file) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException, IllegalArgumentException
file - JCRLocalDropboxDrive.DbxFileInfoNodejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionIllegalArgumentException - when file argument is a root drive of Dropboxprotected javax.jcr.Node readNode(JCRLocalDropboxDrive.DbxFileInfo file) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected javax.jcr.Node getParent(JCRLocalDropboxDrive.DbxFileInfo file) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
file - JCRLocalDropboxDrive.DbxFileInfoNodejavax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.