|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.Sync.ChangesAlgorithm
protected class JCRLocalCMISDrive.Sync.ChangesAlgorithm
An implementation of sync based on an CMIS change log.
| Field Summary | |
|---|---|
protected CMISAPI.ChangesIterator |
changes
Changes from drive to apply. |
protected Set<javax.jcr.Node> |
synced
Existing files being synchronized with cloud. |
| Constructor Summary | |
|---|---|
protected |
JCRLocalCMISDrive.Sync.ChangesAlgorithm()
|
| Method Summary | |
|---|---|
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 file,
Set<String> parentIds,
boolean isFolder)
Create or update file's node. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CMISAPI.ChangesIterator changes
protected final Set<javax.jcr.Node> synced
| Constructor Detail |
|---|
protected JCRLocalCMISDrive.Sync.ChangesAlgorithm()
| Method Detail |
|---|
protected CMISAPI.ChangeToken syncFiles(CMISAPI.ChangeToken fromChangeToken)
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException
protected void deleteFile(String fileId,
Set<String> parentIds)
throws javax.jcr.RepositoryException,
CMISException,
org.exoplatform.clouddrive.CloudDriveAccessException,
org.exoplatform.clouddrive.NotFoundException
fileId - StringparentIds - set of Ids of parents (folders)
javax.jcr.RepositoryException
org.exoplatform.clouddrive.NotFoundException
org.exoplatform.clouddrive.CloudDriveAccessException
CMISException
protected 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.CloudDriveException
IOException
javax.jcr.RepositoryException
InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||