protected static interface JCRLocalDropboxDrive.Changes
| Modifier and Type | Method and Description |
|---|---|
default void |
apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile changedFile)
Process locally applied file (it can be any extra operations including
the gathering of effected files/stats or chunk saving in JCR).
|
default boolean |
canApply(String parentId,
String fileId)
Answers if given file ID under its parent (by ID) already applied
locally.
|
default boolean |
removed(String path)
Adds the removed path to the scope of changes.
|
default void |
undo(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile changedFile)
Undo locally applied file or remove existing.
|
default void apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile changedFile)
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
changedFile - JCRLocalCloudFile changed filejavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptiondefault void undo(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile changedFile)
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.CloudDriveException
changedFile - the changed filejavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptiondefault boolean removed(String path) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
AbstractCommand it effectively should add the path to its removed
list.path - the pathjavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.