protected class JCRLocalDropboxDrive.Connect extends Object implements JCRLocalDropboxDrive.Changes
| Modifier and Type | Field and Description |
|---|---|
protected DropboxAPI |
api
The api.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Connect()
Instantiates a new connect.
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
Process locally applied file (it can be any extra operations including
the gathering of effected files/stats or chunk saving in JCR).
|
boolean |
canApply(String parentId,
String fileId)
Answers if given file ID under its parent (by ID) already applied
locally.
|
protected void |
execLocal()
Execute Connect from current thread.
|
protected void |
fetchFiles() |
void |
undo(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
Undo locally applied file or remove existing.
|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitremovedprotected final DropboxAPI api
protected Connect()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.DriveRemovedException - the drive removed exceptionprotected void fetchFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected void execLocal()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionjavax.jcr.RepositoryException - the repository exceptionpublic void apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
apply in interface JCRLocalDropboxDrive.Changeslocal - JCRLocalCloudFile changed filejavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionpublic void undo(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
undo in interface JCRLocalDropboxDrive.Changeslocal - the changed filejavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionpublic boolean canApply(String parentId, String fileId)
canApply in interface JCRLocalDropboxDrive.ChangesparentId - StringfileId - Stringtrue if file was already applied,
false otherwise.Copyright © 2003–2018 eXo Platform SAS. All rights reserved.