protected class JCRLocalCMISDrive.Sync extends Object
SyncCommand implementation. This command will choose an
actual type of the synchronization depending on the CMIS repository
capabilities (Changes Log support).| Modifier and Type | Class and Description |
|---|---|
protected class |
JCRLocalCMISDrive.Sync.ChangesAlgorithm
An implementation of sync based on an CMIS change log.
|
protected class |
JCRLocalCMISDrive.Sync.TraversingAlgorithm
CMIS drive sync based on all remote files traversing: we do compare all
remote files with locals by its change log and fetch an item if the logs
differ.
|
| Modifier and Type | Field and Description |
|---|---|
protected CMISAPI |
api
Internal API.
|
protected JCRLocalCMISDrive.Sync.ChangesAlgorithm |
changesLog
The changes log.
|
protected org.exoplatform.clouddrive.CloudDriveException |
preSyncError
The pre sync error.
|
| Modifier | Constructor and Description |
|---|---|
protected |
Sync()
Instantiates a new sync.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
cleanMoved(javax.jcr.Node fileNode,
String parentId)
Deprecated.
|
protected void |
cleanRenamed(javax.jcr.Node fileNode,
String fileName)
Remove a fact of local rename of the file from given name.
|
protected void |
preSaveChunk() |
protected void |
preSyncFiles() |
protected void |
syncFiles() |
protected boolean |
wasMoved(javax.jcr.Node fileNode,
String changeParentId)
Deprecated.
|
protected boolean |
wasRenamed(javax.jcr.Node fileNode,
String changeName)
Check if the file was renamed locally from given name.
|
protected final CMISAPI api
protected org.exoplatform.clouddrive.CloudDriveException preSyncError
protected JCRLocalCMISDrive.Sync.ChangesAlgorithm changesLog
protected void preSyncFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException,
InterruptedException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionInterruptedExceptionprotected void syncFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException,
InterruptedException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionInterruptedExceptionprotected void preSaveChunk()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected boolean wasRenamed(javax.jcr.Node fileNode,
String changeName)
throws javax.jcr.RepositoryException
fileNode - the file nodechangeName - the change namejavax.jcr.RepositoryException - the repository exceptionprotected void cleanRenamed(javax.jcr.Node fileNode,
String fileName)
throws javax.jcr.RepositoryException
fileNode - the file nodefileName - the file namejavax.jcr.RepositoryException - the repository exception@Deprecated protected boolean wasMoved(javax.jcr.Node fileNode, String changeParentId) throws javax.jcr.RepositoryException
fileNode - the file nodechangeParentId - the change parent idjavax.jcr.RepositoryException - the repository exception@Deprecated protected void cleanMoved(javax.jcr.Node fileNode, String parentId) throws javax.jcr.RepositoryException
fileNode - the file nodeparentId - the parent idjavax.jcr.RepositoryException - the repository exceptionCopyright © 2003–2019 eXo Platform SAS. All rights reserved.