AbstractMapper.php
270 public function loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
296 public function loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
298 $relatedObjects = $this->loadRelationImpl($objects, $role, $buildDepth, $criteria, $orderby, $pagingInfo);
350 $msg = $this->_message->getText("Authorization failed for action '%0%' on '%1%'.", array($action, $resource));
387 abstract protected function getOIDsImpl($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null);
392 abstract protected function loadObjectsImpl($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null,
398 abstract protected function loadRelationImpl(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null,
loadObjectsImpl($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
beforeUpdate()
This method is called always before updating the modified object in the store.
authorizationFailedError($resource, $action)
Handle an authorization error.
Definition: AbstractMapper.php:348
saveImpl(PersistentObject $object)
getRelations($hierarchyType='all')
Get the relations for this type.
EventManager is responsible for dispatching events to registered listeners.
Definition: EventManager.php:21
OutputStrategy defines the interface for classes that write an object's content to a destination (cal...
Definition: OutputStrategy.php:22
AuthorizationException signals an exception in authorization.
Definition: AuthorizationException.php:18
loadRelationImpl(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
__construct(PersistenceFacade $persistenceFacade, PermissionManager $permissionManager, ConcurrencyManager $concurrencyManager, EventManager $eventManager, Message $message)
Constructor.
Definition: AbstractMapper.php:61
afterUpdate()
This method is called always after updating the modified object in the store.
logAction(PersistentObject $obj)
Log the state of the given object.
Definition: AbstractMapper.php:326
$_eventManager
Definition: AbstractMapper.php:50
ObjectId is the unique identifier of an object.
Definition: ObjectId.php:27
PersistenceMapper defines the interface for all mapper classes.
Definition: PersistenceMapper.php:26
loadImpl(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
deleteImpl(PersistentObject $object)
load(ObjectId $oid, $buildDepth=BuildDepth::SINGLE)
Definition: AbstractMapper.php:121
ConcurrencyManager is used to handle concurrency for objects.
Definition: ConcurrencyManager.php:32
getOIDsImpl($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
getOIDs($type, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: AbstractMapper.php:249
validateValues(Message $message)
Validate all values by calling PersistentObject::validateValue() Throws a ValidationException in case...
$_concurrencyManager
Definition: AbstractMapper.php:49
hasRelation($roleName)
Definition: AbstractMapper.php:87
PagingInfo contains information about a paged list.
Definition: PagingInfo.php:18
loadObjects($type, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: AbstractMapper.php:270
Message is used to get localized messages to be used in the user interface.
Definition: Message.php:23
AbstractMapper provides a basic implementation for other mapper classes.
Definition: AbstractMapper.php:38
PersistentEvent signals create/update/delete operations on a persistent entity.
Definition: PersistenceEvent.php:22
const STATE_DIRTY
Definition: PersistentObject.php:27
save(PersistentObject $object)
Definition: AbstractMapper.php:158
setLogStrategy(OutputStrategy $logStrategy)
Set the OutputStrategy used for logging persistence actions.
Definition: AbstractMapper.php:80
$_permissionManager
Definition: AbstractMapper.php:48
PermissionManager implementations are used to handle all authorization requests.
Definition: PermissionManager.php:22
createImpl($type, $buildDepth=BuildDepth::SINGLE)
create($type, $buildDepth=BuildDepth::SINGLE)
Definition: AbstractMapper.php:142
hasAttribute($name)
Definition: AbstractMapper.php:104
static isValid($oid)
Check if a serialized ObjectId has a valid syntax, the type is known and if the number of primary key...
Definition: ObjectId.php:132
getAttributes(array $tags=array(), $matchMode='all')
PersistentObject values may be tagged with application specific tags.
afterInsert()
This method is called once after inserting the newly created object into the store.
PersistenceFacade defines the interface for PersistenceFacade implementations.
Definition: PersistenceFacade.php:23
checkAuthorization($resource, $action)
Check authorization on a resource (type/instance/instance property) and a given action.
Definition: AbstractMapper.php:338
$_persistenceFacade
Definition: AbstractMapper.php:47
beforeInsert()
This method is called once before inserting the newly created object into the store.
loadRelation(array $objects, $role, $buildDepth=BuildDepth::SINGLE, $criteria=null, $orderby=null, PagingInfo $pagingInfo=null)
Definition: AbstractMapper.php:296
getChangedValues()
Get the list of changed attributes since creation, loading.
PersistentObject defines the interface of all persistent objects.
Definition: PersistentObject.php:24