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 |
JCRLocalCMISDrive.Sync.ChangesAlgorithm() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
deleteFile(String fileId,
Set<String> parentIds)
Remove file's node.
|
protected CMISAPI.ChangeToken |
getLastChangeToken() |
protected void |
syncFiles(CMISAPI.ChangeToken fromChangeToken) |
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 JCRLocalCMISDrive.Sync.ChangesAlgorithm()
protected CMISAPI.ChangeToken getLastChangeToken()
protected void syncFiles(CMISAPI.ChangeToken fromChangeToken) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected 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.RepositoryExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected 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)org.exoplatform.clouddrive.CloudDriveExceptionIOExceptionjavax.jcr.RepositoryExceptionInterruptedExceptionCopyright © 2003–2015 eXo Platform SAS. All rights reserved.