Skip to content

Object Store

Raphael Matile edited this page Mar 17, 2016 · 1 revision

To access information about particular files within the synchronised folder, the underlying ObjectStore can be retrieved from each INode:

import org.rmatil.sync.version.api.IObjectManager;
import org.rmatil.sync.version.api.IObjectStore;

// ...
// Connect resp. bootstrap the node before
// ...

  // get the Object Store of the synchronised folder
  IObjectStore objectStore = sync.getObjectStore();
  // manage PathObjects in the Object Store
  IObjectManager objectManager = objectStore.getObjectManager();
  // manage sharing properties of files and directories
  objectStore.getSharerManager();
  // manage existence of files and directories
  objectStore.getDeleteManager();