AclCollectionCache

class AclCollectionCache This service caches ACLs for an entire collection of objects. Methods __construct(AclProviderInterface $aclProvider, ObjectIdentityRetrievalStrategyInterface $oidRetrievalStrategy, SecurityIdentityRetrievalStrategyInterface $sidRetrievalStrategy) Constructor. cache(mixed $collection, array $tokens = array()) Batch loads ACLs for an entire collection; thus, it reduces the number of required queries considerably. Details __cons

AclCacheInterface::getFromCacheByIdentity()

AclInterface getFromCacheByIdentity(ObjectIdentityInterface $oid) Retrieves an ACL for the given object identity from the cache Parameters ObjectIdentityInterface $oid Return Value AclInterface

AclCacheInterface::clearCache()

clearCache() Removes all ACLs from the cache

AclCacheInterface::evictFromCacheById()

evictFromCacheById(string $primaryKey) Removes an ACL from the cache Parameters string $primaryKey a serialized primary key

AclCacheInterface::evictFromCacheByIdentity()

evictFromCacheByIdentity(ObjectIdentityInterface $oid) Removes an ACL from the cache The ACL which is returned, must reference the passed object identity. Parameters ObjectIdentityInterface $oid

AclCacheInterface

interface AclCacheInterface AclCache Interface Methods evictFromCacheById(string $primaryKey) Removes an ACL from the cache evictFromCacheByIdentity(ObjectIdentityInterface $oid) Removes an ACL from the cache AclInterface getFromCacheById(int $primaryKey) Retrieves an ACL for the given object identity primary key from the cache AclInterface getFromCacheByIdentity(ObjectIdentityInterface $oid) Retrieves an ACL for the given object identity from the cache putInCache(Acl

Acl::updateObjectAuditing()

updateObjectAuditing(int $index, bool $auditSuccess, bool $auditFailure) Updates auditing for object-based ACE Parameters int $index bool $auditSuccess bool $auditFailure

AclAlreadyExistsException

class AclAlreadyExistsException extends Exception This exception is thrown when someone tries to create an ACL for an object identity that already has one.

Acl::updateObjectAce()

updateObjectAce(int $index, int $mask, string $strategy = null) Updates an object-based ACE Parameters int $index int $mask string $strategy if null the strategy should not be changed

Acl::updateClassFieldAuditing()

updateClassFieldAuditing(int $index, string $field, bool $auditSuccess, bool $auditFailure) Updates auditing for class-field-based ACE Parameters int $index string $field bool $auditSuccess bool $auditFailure