protected class JCRLocalDropboxDrive.DropboxDrive.LocalItem extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
LocalItem(String dbxPath,
javax.jcr.Node node,
javax.jcr.Node parent,
List<String> relPath)
Instantiates a new item location.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
exists()
Tells if node of this item exists locally.
|
javax.jcr.Node |
fetch(JCRLocalDropboxDrive.Changes changes)
Fetch the item state from remote side.
|
javax.jcr.Node |
getNode()
Gets the local node of this item.
|
javax.jcr.Node |
move(JCRLocalDropboxDrive.ItemInfo toItem,
JCRLocalDropboxDrive.Changes changes)
Move this local item to a location reflecting given remote item and
update its state.
|
String |
removeNode()
Removes the item node and return its path in local storage (JCR) or
null if nothing found. |
javax.jcr.Node |
update(JCRLocalDropboxDrive.ItemInfo item,
JCRLocalDropboxDrive.Changes changes)
Update this local item with remote item state.
|
public boolean exists()
public javax.jcr.Node getNode()
null and it's possible to call
fetch(Changes) to fetch the item state from cloud side or apply
existing state from metadata in update(ItemInfo, Changes).nullpublic String removeNode() throws javax.jcr.RepositoryException
null if nothing found.null if nothing removedjavax.jcr.RepositoryException - the repository exceptionpublic javax.jcr.Node update(JCRLocalDropboxDrive.ItemInfo item, JCRLocalDropboxDrive.Changes changes) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
item - the itemchanges - the changesjavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionpublic javax.jcr.Node move(JCRLocalDropboxDrive.ItemInfo toItem, JCRLocalDropboxDrive.Changes changes) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
toItem - the to itemchanges - the changesjavax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionpublic javax.jcr.Node fetch(JCRLocalDropboxDrive.Changes changes) throws javax.jcr.RepositoryException, org.exoplatform.clouddrive.CloudDriveException
null if node not found
remotely or its dbxPath was changed.changes - the changes command related to the operation, not
nullNode instance of local cloud file or
null if no node updated.javax.jcr.RepositoryException - the repository exceptionorg.exoplatform.clouddrive.CloudDriveException - the cloud drive exceptionCopyright © 2003–2020 eXo Platform SAS. All rights reserved.