protected class JCRLocalCMISDrive.Sync.ChangesAlgorithm extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CMISAPI.ChangesIterator |
changes
Changes from drive to apply.
|
| Modifier | Constructor and Description |
|---|---|
protected |
ChangesAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteFile(String fileId,
Set<String> parentIds)
Remove file's node.
|
protected CMISAPI.ChangeToken |
getLastChangeToken()
Gets the last change token.
|
protected void |
syncFiles(CMISAPI.ChangeToken fromChangeToken)
Sync files.
|
protected void |
updateFile(org.apache.chemistry.opencmis.client.api.CmisObject file,
Set<String> parentIds,
boolean isFolder)
Create or update file's node.
|
protected CMISAPI.ChangesIterator changes
protected CMISAPI.ChangeToken getLastChangeToken()
protected void syncFiles(CMISAPI.ChangeToken fromChangeToken) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
fromChangeToken - the from change tokenorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionjavax.jcr.RepositoryException - the repository exceptionprotected void deleteFile(String fileId, Set<String> parentIds) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
fileId - StringparentIds - set of Ids of parents (folders)javax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionprotected void updateFile(org.apache.chemistry.opencmis.client.api.CmisObject file,
Set<String> parentIds,
boolean isFolder)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
file - CmisObjectparentIds - set of Ids of parents (folders)isFolder - the is folderorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionjavax.jcr.RepositoryException - the repository exceptionCopyright © 2003–2018 eXo Platform SAS. All rights reserved.