PersistenceActionKeyProvider.php
117 $tmpPerm = $permissionManager->addTempPermission($this->entityType, '', PersistenceAction::READ);
142 $tpl->setValue($this->valueMap['resource'], Criteria::asValue('=', $actionKeyParams['resource']));
143 $tpl->setValue($this->valueMap['context'], Criteria::asValue('=', $actionKeyParams['context']));
containsKey($actionKey)
Definition: PersistenceActionKeyProvider.php:75
PersistenceActionKeyProvider searches for action keys in the application storage.
Definition: PersistenceActionKeyProvider.php:28
static asValue($operator, $value)
Factory method for constructing a Criteria that may be used as value on a PersistentObject's attribut...
Definition: Criteria.php:58
Criteria defines a condition on a PersistentObject's attribute used to select specific instances.
Definition: Criteria.php:21
BuildDepth values are used to define the depth when loading object trees.
Definition: BuildDepth.php:19
getAllKeyValues()
Get all key values from the storage.
Definition: PersistenceActionKeyProvider.php:112
Implementations of ActionKeyProvider search for action keys.
Definition: ActionKeyProvider.php:18
PersistentEvent signals create/update/delete operations on a persistent entity.
Definition: PersistenceEvent.php:22
static createKey($resource, $context, $action)
Create an action key from the given values.
Definition: ActionKey.php:33
setEntityType($entityType)
Set the entity type to search in.
Definition: PersistenceActionKeyProvider.php:58
setValueMap($valueMap)
Set the value map for the entity type.
Definition: PersistenceActionKeyProvider.php:68
getId()
Definition: PersistenceActionKeyProvider.php:101
static getInstance($name, $dynamicConfiguration=[])
Definition: ObjectFactory.php:47
An action key is a combination of a resource, context and action that is represented as a string.
Definition: ActionKey.php:22
getSingleKeyValue($actionKey)
Get a single key value from the storage.
Definition: PersistenceActionKeyProvider.php:138
PersistenceAction values are used to define actions on PersistentObject instances.
Definition: PersistenceAction.php:19
ObjectFactory implements the service locator pattern by wrapping a Factory instance and providing sta...
Definition: ObjectFactory.php:24
keyChanged(PersistenceEvent $event)
Listen to PersistentEvent.
Definition: PersistenceActionKeyProvider.php:156
ObjectQuery implements a template based object query.
Definition: ObjectQuery.php:106
getKeyValue($actionKey)
Definition: PersistenceActionKeyProvider.php:82