org.exoplatform.clouddrive.box
Class JCRLocalBoxDrive.FullSync

java.lang.Object
  extended by org.exoplatform.clouddrive.box.JCRLocalBoxDrive.FullSync
All Implemented Interfaces:
org.exoplatform.clouddrive.CloudDrive.Command
Enclosing class:
JCRLocalBoxDrive

protected class JCRLocalBoxDrive.FullSync
extends Object

Sync algorithm for Box drive based on all remote files traversing: we do compare all remote files with locals by its Etag and fetch an item if the tags differ.


Field Summary
protected  BoxAPI api
          Box API.
 
Fields inherited from interface org.exoplatform.clouddrive.CloudDrive.Command
COMPLETE
 
Constructor Summary
protected JCRLocalBoxDrive.FullSync()
          Create command for Box synchronization.
 
Method Summary
protected  void execLocal()
          Execute full sync from current thread.
protected  com.box.boxjavalibv2.dao.BoxFolder syncChilds(String folderId, javax.jcr.Node parent)
           
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 BoxAPI api
Box API.

Constructor Detail

JCRLocalBoxDrive.FullSync

protected JCRLocalBoxDrive.FullSync()
                             throws javax.jcr.RepositoryException,
                                    org.exoplatform.clouddrive.DriveRemovedException
Create command for Box synchronization.

Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.DriveRemovedException
Method Detail

syncFiles

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

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

syncChilds

protected com.box.boxjavalibv2.dao.BoxFolder syncChilds(String folderId,
                                                        javax.jcr.Node parent)
                                                 throws javax.jcr.RepositoryException,
                                                        org.exoplatform.clouddrive.CloudDriveException
Throws:
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveException

execLocal

protected void execLocal()
                  throws org.exoplatform.clouddrive.CloudDriveException,
                         javax.jcr.RepositoryException
Execute full sync from current thread.

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


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