Symfony\Component\Security\Acl\Dbal\MutableAclProvider
An implementation of the MutableAclProviderInterface using Doctrine DBAL.
- Author: Johannes M. Schmitt <schmittjoh@gmail.com>
Synopsis
class MutableAclProvider
extends AclProvider
implements
MutableAclProviderInterface,PropertyChangedListener
{
- // Inherited constants from AclProvider
- const MAX_BATCH_SIZE = 30;
- // members
- private $propertyChanges;
- // Inherited members from AclProvider
- protected $cache;
- protected $connection;
- protected $loadedAces;
- protected $loadedAcls;
- protected $options;
- // methods
- public void __construct()
- public void createAcl()
- public void deleteAcl()
- public void findAcls()
- public void propertyChanged()
- public void updateAcl()
- protected string getDeleteAccessControlEntriesSql()
- protected string getDeleteAccessControlEntrySql()
- protected string getDeleteObjectIdentitySql()
- protected string getDeleteObjectIdentityRelationsSql()
- protected string getInsertAccessControlEntrySql()
- protected string getInsertClassSql()
- protected string getInsertObjectIdentityRelationSql()
- protected string getInsertObjectIdentitySql()
- protected string getInsertSecurityIdentitySql()
- protected string getSelectAccessControlEntryIdSql()
- protected string getSelectClassIdSql()
- protected string getSelectSecurityIdentityIdSql()
- protected string getUpdateObjectIdentitySql()
- protected string getUpdateAccessControlEntrySql()
- private void createObjectIdentity()
- private integer createOrRetrieveClassId()
- private integer createOrRetrieveSecurityIdentityId()
- private void deleteAccessControlEntries()
- private void deleteObjectIdentity()
- private void deleteObjectIdentityRelations()
- private void regenerateAncestorRelations()
- private void updateFieldAceProperty()
- private void updateAceProperty()
- private void updateAces()
- // Inherited methods from AclProvider
- public void __construct()
- public void findChildren()
- public void findAcl()
- public void findAcls()
- protected string getLookupSql()
- protected void getAncestorLookupSql()
- protected string getFindChildrenSql()
- protected string getSelectObjectIdentityIdSql()
- protected final integer retrieveObjectIdentityPrimaryKey()
Hierarchy
Extends
Implements
Constants
Name | Value |
---|---|
MAX_BATCH_SIZE | 30 |
Members
private
- $propertyChanges
protected
- $cache
- $connection
- $loadedAces
- $loadedAcls
- $options
Methods
private
- createObjectIdentity() — Creates the ACL for the passed object identity
- createOrRetrieveClassId() — Returns the primary key for the passed class type.
- createOrRetrieveSecurityIdentityId() — Returns the primary key for the passed security identity.
- deleteAccessControlEntries() — Deletes all ACEs for the given object identity primary key.
- deleteObjectIdentity() — Deletes the object identity from the database.
- deleteObjectIdentityRelations() — Deletes all entries from the relations table from the database.
- regenerateAncestorRelations() — This regenerates the ancestor table which is used for fast read access.
- updateAceProperty() — This processes changes on an ACE related property (classAces, or objectAces).
- updateAces() — Persists the changes which were made to ACEs to the database.
- updateFieldAceProperty() — This processes changes on an ACE related property (classFieldAces, or objectFieldAces).
protected
- getDeleteAccessControlEntriesSql() — Constructs the SQL for deleting access control entries.
- getDeleteAccessControlEntrySql() — Constructs the SQL for deleting a specific ACE.
- getDeleteObjectIdentityRelationsSql() — Constructs the SQL for deleting relation entries.
- getDeleteObjectIdentitySql() — Constructs the SQL for deleting an object identity.
- getInsertAccessControlEntrySql() — Constructs the SQL for inserting an ACE.
- getInsertClassSql() — Constructs the SQL for inserting a new class type.
- getInsertObjectIdentityRelationSql() — Constructs the SQL for inserting a relation entry.
- getInsertObjectIdentitySql() — Constructs the SQL for inserting an object identity.
- getInsertSecurityIdentitySql() — Constructs the SQL for inserting a security identity.
- getSelectAccessControlEntryIdSql() — Constructs the SQL for selecting an ACE.
- getSelectClassIdSql() — Constructs the SQL for selecting the primary key associated with the passed class type.
- getSelectSecurityIdentityIdSql() — Constructs the SQL for selecting the primary key of a security identity.
- getUpdateAccessControlEntrySql() — Constructs the SQL for updating an ACE.
- getUpdateObjectIdentitySql() — Constructs the SQL for updating an object identity.
public
- __construct() — {@inheritDoc}
- createAcl() — {@inheritDoc}
- deleteAcl() — {@inheritDoc}
- findAcls() — {@inheritDoc}
- propertyChanged() — Implementation of PropertyChangedListener
- updateAcl() — {@inheritDoc}
Inherited from Symfony\Component\Security\Acl\Dbal\AclProvider
protected
- getAncestorLookupSql()
- getFindChildrenSql() — Constructs the SQL for retrieving child object identities for the given object identities.
- getLookupSql() — Constructs the query used for looking up object identities and associated ACEs, and security identities.
- getSelectObjectIdentityIdSql() — Constructs the SQL for retrieving the primary key of the given object identity.
- retrieveObjectIdentityPrimaryKey() — Returns the primary key of the passed object identity.
public
- findAcl() — {@inheritDoc}
- findAcls() — {@inheritDoc}
- findChildren() — {@inheritDoc}