org.exoplatform.clouddrive.cmis
Class JCRLocalCMISDrive.Sync

java.lang.Object
  extended by org.exoplatform.clouddrive.cmis.JCRLocalCMISDrive.Sync
All Implemented Interfaces:
org.exoplatform.clouddrive.CloudDrive.Command
Enclosing class:
JCRLocalCMISDrive

protected class JCRLocalCMISDrive.Sync
extends Object

A facade SyncCommand implementation. This command will choose an actual type of the synchronization depending on the CMIS repository capabilities (Changes Log support).


Nested Class Summary
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.
 
Field Summary
protected  CMISAPI api
          Internal API.
protected  org.exoplatform.clouddrive.CloudDriveException preSyncError
           
 
Fields inherited from interface org.exoplatform.clouddrive.CloudDrive.Command
COMPLETE
 
Constructor Summary
protected JCRLocalCMISDrive.Sync()
           
 
Method Summary
protected  void preSyncFiles()
          
protected  void syncFiles()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

api

protected final CMISAPI api
Internal API.


preSyncError

protected org.exoplatform.clouddrive.CloudDriveException preSyncError
Constructor Detail

JCRLocalCMISDrive.Sync

protected JCRLocalCMISDrive.Sync()
Method Detail

preSyncFiles

protected void preSyncFiles()
                     throws org.exoplatform.clouddrive.CloudDriveException,
                            javax.jcr.RepositoryException,
                            InterruptedException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException
InterruptedException

syncFiles

protected void syncFiles()
                  throws org.exoplatform.clouddrive.CloudDriveException,
                         javax.jcr.RepositoryException,
                         InterruptedException

Throws:
org.exoplatform.clouddrive.CloudDriveException
javax.jcr.RepositoryException
InterruptedException


Copyright © 2003–2015 eXo Platform SAS. All rights reserved.