RemoteCapablePersistenceFacade.php
146 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null) {
169 * @param $buildDepth buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build (except BuildDepth::REQUIRED)
192 $proxy = $persistenceFacade->loadFirstObject($umi->getType(), $buildDepth, [$umi->getType().'.umi' => $umi->toString()]);
212 * @param $buildDepth buildDepth One of the BUILDDEPTH constants or a number describing the number of generations to build (except BuildDepth::REQUIRED)
313 // TODO: fix caching remote objects (invalidate cache entry, if an association to the object changes)
324 protected function registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName) {
Session is the interface for session implementations and defines access to session variables.
Definition: Session.php:19
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
const REMOTE_OBJECTS_SESSION_VARNAME
Definition: RemoteCapablePersistenceFacade.php:37
getProxyObject(ObjectId $umi, $buildDepth)
Get the proxy object for a remote object.
Definition: RemoteCapablePersistenceFacade.php:172
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
registerRemoteObject(ObjectId $umi, PersistentObject $obj, $buildDepth)
Save a remote object in the session.
Definition: RemoteCapablePersistenceFacade.php:312
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Definition: RemoteCapablePersistenceFacade.php:109
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:28
getRegisteredObject(ObjectId $umi, $buildDepth, $varName)
Get a object from the given session variable.
Definition: RemoteCapablePersistenceFacade.php:367
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
Default PersistenceFacade implementation.
Definition: DefaultPersistenceFacade.php:35
isResolvingProxies()
Check if the PersistenceFacade implementation is resolving proxies or not.
Definition: RemoteCapablePersistenceFacade.php:86
NodeIterator is used to iterate over a tree/list built of Nodes using a Depth-First-Algorithm.
Definition: NodeIterator.php:36
isTranslatingValues()
Check if the PersistenceFacade implementation is translating remote values or not.
Definition: RemoteCapablePersistenceFacade.php:102
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
create($type, $buildDepth=BuildDepth::SINGLE)
Definition: RemoteCapablePersistenceFacade.php:130
getRegisteredRemoteObject(ObjectId $umi, $buildDepth)
Get a remote object from the session.
Definition: RemoteCapablePersistenceFacade.php:355
RemoteCapablePersistenceFacade delegates local persistence operations to the default PersistenceFacad...
Definition: RemoteCapablePersistenceFacade.php:33
makeUmis($oids, $umiPrefix)
Replace all object ids in an array with the umis according to the given umiPrefix.
Definition: RemoteCapablePersistenceFacade.php:395
registerProxyObject(ObjectID $umi, PersistentObject $obj, $buildDepth)
Save a proxy object in the session.
Definition: RemoteCapablePersistenceFacade.php:297
static getNewInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:55
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: RemoteCapablePersistenceFacade.php:146
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: RemoteCapablePersistenceFacade.php:138
getRegisteredProxyObject(ObjectId $umi, $buildDepth)
Get a proxy object from the session.
Definition: RemoteCapablePersistenceFacade.php:344
setResolveProxies($isResolvingProxies)
Tell the PersistenceFacade implementation to resolve proxies or not.
Definition: RemoteCapablePersistenceFacade.php:78
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:23
__construct(EventManager $eventManager, OutputStrategy $logStrategy, Session $session)
Constructor.
Definition: RemoteCapablePersistenceFacade.php:53
LogManager is used to retrieve Logger instances.
Definition: LogManager.php:20
const PROXY_OBJECTS_SESSION_VARNAME
Definition: RemoteCapablePersistenceFacade.php:36
registerObject(ObjectId $umi, PersistentObject $obj, $buildDepth, $varName)
Save a object in the given session variable.
Definition: RemoteCapablePersistenceFacade.php:324
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
setTranslatingValues($isTranslatingValues)
Tell the PersistenceFacade implementation to translate remote values or not.
Definition: RemoteCapablePersistenceFacade.php:94
loadRemoteObject(ObjectId $umi, $buildDepth)
Load the real subject of a proxy from the remote instance.
Definition: RemoteCapablePersistenceFacade.php:214