Interface JCRLocalDropboxDrive.Changes
-
- All Known Implementing Classes:
JCRLocalDropboxDrive.Connect,JCRLocalDropboxDrive.EventsSync
- Enclosing class:
- JCRLocalDropboxDrive
protected static interface JCRLocalDropboxDrive.ChangesApplicable changes of local Drobpox drive.
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidapply(org.exoplatform.services.cms.clouddrives.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 booleancanApply(String parentId, String fileId)Answers if given file ID under its parent (by ID) already applied locally.default booleanremoved(String path)Adds the removed path to the scope of changes.default voidundo(org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudFile changedFile)Undo locally applied file or remove existing.
-
-
-
Method Detail
-
apply
default void apply(org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudFile changedFile) throws javax.jcr.RepositoryException, org.exoplatform.services.cms.clouddrives.CloudDriveExceptionProcess locally applied file (it can be any extra operations including the gathering of effected files/stats or chunk saving in JCR).- Parameters:
changedFile-JCRLocalCloudFilechanged file- Throws:
javax.jcr.RepositoryException- the repository exceptionorg.exoplatform.services.cms.clouddrives.CloudDriveException- the cloud drive exception
-
undo
default void undo(org.exoplatform.services.cms.clouddrives.jcr.JCRLocalCloudFile changedFile) throws javax.jcr.RepositoryException, org.exoplatform.services.cms.clouddrives.CloudDriveExceptionUndo locally applied file or remove existing.- Parameters:
changedFile- the changed file- Throws:
javax.jcr.RepositoryException- the repository exceptionorg.exoplatform.services.cms.clouddrives.CloudDriveException- the cloud drive exception
-
removed
default boolean removed(String path) throws javax.jcr.RepositoryException, org.exoplatform.services.cms.clouddrives.CloudDriveException
Adds the removed path to the scope of changes. For a commandJCRLocalCloudDrive.AbstractCommandit effectively should add the path to its removed list.- Parameters:
path- the path- Returns:
- true, if successful
- Throws:
javax.jcr.RepositoryException- the repository exceptionorg.exoplatform.services.cms.clouddrives.CloudDriveException- the cloud drive exception
-
-