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 |
protected org.exoplatform.clouddrive.CloudDriveException |
preSyncError |
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalCMISDrive.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 - changeName - javax.jcr.RepositoryExceptionprotected void cleanRenamed(javax.jcr.Node fileNode,
String fileName)
throws javax.jcr.RepositoryException
fileNode - fileName - javax.jcr.RepositoryException@Deprecated protected boolean wasMoved(javax.jcr.Node fileNode, String changeParentId) throws javax.jcr.RepositoryException
fileNode - changeParentId - javax.jcr.RepositoryException@Deprecated protected void cleanMoved(javax.jcr.Node fileNode, String parentId) throws javax.jcr.RepositoryException
fileNode - parentId - javax.jcr.RepositoryExceptionCopyright © 2003–2016 eXo Platform SAS. All rights reserved.