protected class JCRLocalBoxDrive.EventsSync extends Object
| Modifier and Type | Field and Description |
|---|---|
protected BoxAPI |
api
Box API.
|
protected Map<String,org.exoplatform.clouddrive.jcr.JCRLocalCloudFile> |
applied
Applied items in latest state mapped by item id.
|
protected int |
appliedCounter
Counter of applied events in this Sync.
|
protected org.exoplatform.clouddrive.box.BoxAPI.EventsIterator |
events
Events from Box to apply.
|
protected Set<String> |
history
Currently applied history of the drive storage.
|
protected com.box.boxjavalibv2.dao.BoxEvent |
lastPostponed |
protected Set<String> |
newHistory
New history with currently applied event ids.
|
protected com.box.boxjavalibv2.dao.BoxEvent |
nextEvent |
protected LinkedList<com.box.boxjavalibv2.dao.BoxEvent> |
postponed
Queue of events postponed due to not existing parent or source.
|
protected int |
postponedNumber |
protected int |
prevPostponedNumber |
protected int |
readCounter
Counter of events read from Box service.
|
protected Set<String> |
removedIds
Ids of removed items.
|
protected Map<String,com.box.boxjavalibv2.dao.BoxItem> |
undeleted
Undeleted events by item id.
|
| Modifier | Constructor and Description |
|---|---|
protected |
JCRLocalBoxDrive.EventsSync()
Create command for Box synchronization.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile |
applied(String itemId) |
protected void |
apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local) |
protected com.box.boxjavalibv2.dao.BoxFolder |
fetchChilds(String fileId,
javax.jcr.Node parent) |
protected boolean |
hasNextEvent() |
protected boolean |
hasPostponed() |
protected boolean |
isRemoved(String itemId) |
protected com.box.boxjavalibv2.dao.BoxEvent |
nextEvent() |
protected void |
postpone(com.box.boxjavalibv2.dao.BoxEvent event) |
protected com.box.boxjavalibv2.dao.BoxEvent |
readEvent() |
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile |
remove(String itemId,
String itemPath) |
protected void |
syncFiles() |
protected void |
undelete(com.box.boxjavalibv2.dao.BoxItem item) |
protected com.box.boxjavalibv2.dao.BoxItem |
undeleted(String itemId) |
protected final BoxAPI api
protected final LinkedList<com.box.boxjavalibv2.dao.BoxEvent> postponed
protected final Map<String,org.exoplatform.clouddrive.jcr.JCRLocalCloudFile> applied
protected final Map<String,com.box.boxjavalibv2.dao.BoxItem> undeleted
protected org.exoplatform.clouddrive.box.BoxAPI.EventsIterator events
protected com.box.boxjavalibv2.dao.BoxEvent nextEvent
protected com.box.boxjavalibv2.dao.BoxEvent lastPostponed
protected int prevPostponedNumber
protected int postponedNumber
protected int appliedCounter
protected int readCounter
protected JCRLocalBoxDrive.EventsSync()
throws javax.jcr.RepositoryException,
org.exoplatform.clouddrive.DriveRemovedException
javax.jcr.RepositoryExceptionorg.exoplatform.clouddrive.DriveRemovedExceptionprotected void syncFiles()
throws org.exoplatform.clouddrive.CloudDriveException,
javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected com.box.boxjavalibv2.dao.BoxFolder fetchChilds(String fileId, javax.jcr.Node parent) throws org.exoplatform.clouddrive.CloudDriveException, javax.jcr.RepositoryException
org.exoplatform.clouddrive.CloudDriveExceptionjavax.jcr.RepositoryExceptionprotected com.box.boxjavalibv2.dao.BoxEvent readEvent()
throws org.exoplatform.clouddrive.CloudDriveException
org.exoplatform.clouddrive.CloudDriveExceptionprotected boolean hasNextEvent()
throws org.exoplatform.clouddrive.CloudDriveException
org.exoplatform.clouddrive.CloudDriveExceptionprotected com.box.boxjavalibv2.dao.BoxEvent nextEvent()
throws NoSuchElementException,
org.exoplatform.clouddrive.CloudDriveException
NoSuchElementExceptionorg.exoplatform.clouddrive.CloudDriveExceptionprotected void postpone(com.box.boxjavalibv2.dao.BoxEvent event)
protected boolean hasPostponed()
protected com.box.boxjavalibv2.dao.BoxItem undeleted(String itemId)
protected void undelete(com.box.boxjavalibv2.dao.BoxItem item)
protected void apply(org.exoplatform.clouddrive.jcr.JCRLocalCloudFile local)
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile applied(String itemId)
protected org.exoplatform.clouddrive.jcr.JCRLocalCloudFile remove(String itemId, String itemPath)
protected boolean isRemoved(String itemId)
Copyright © 2003–2015 eXo Platform SAS. All rights reserved.