protected class JCRLocalCMISDrive.Sync.ChangesAlgorithm extends Object
| Modifier and Type | Field and Description |
|---|---|
protected CMISAPI.ChangesIterator |
changes
Changes from drive to apply.
|
protected Set<javax.jcr.Node> |
synced
Existing files being synchronized with cloud.
|
| 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 |
syncFiles(CMISAPI.ChangeToken fromChangeToken) |
protected void |
updateFile(org.apache.chemistry.opencmis.client.api.CmisObject item,
Set<String> parentIds,
boolean isFolder)
Create or update file's node.
|
protected CMISAPI.ChangesIterator changes
protected final Set<javax.jcr.Node> synced
protected JCRLocalCMISDrive.Sync.ChangesAlgorithm()
protected CMISAPI.ChangeToken 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
fileId - StringparentIds - set of Ids of parents (folders)javax.jcr.RepositoryExceptionprotected void updateFile(org.apache.chemistry.opencmis.client.api.CmisObject item,
Set<String> parentIds,
boolean isFolder)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
item - CmisObjectparentIds - set of Ids of parents (folders)org.exoplatform.clouddrive.CloudDriveExceptionIOExceptionjavax.jcr.RepositoryExceptionInterruptedExceptionCopyright © 2003–2014 eXo Platform SAS. All rights reserved.