AclFactory

Access control list factory.
implements Zend\ServiceManager\Factory\FactoryInterface
Methods Summary
public
# __invoke( Interop\Container\ContainerInterface $serviceLocator , $requestedName , array $options = NULL )
Create the access control list.

Implementation of

protected
# addRoles( Omeka\Permissions\Acl $acl )
Add ACL roles.
protected
# addResources( Omeka\Permissions\Acl $acl , Interop\Container\ContainerInterface $serviceLocator )
Add ACL resources. The following resources are added automatically: - API adapter classes that implement ResourceInterface - Entity classes that implement ResourceInterface - Controller classes
protected
# addRules( Omeka\Permissions\Acl $acl )
Add ACL rules.
protected
# addRulesForSites( Omeka\Permissions\Acl $acl )
Add rules for sites.
protected
# addRulesForAllRoles( Omeka\Permissions\Acl $acl )
Add rules for all roles, including users that aren't authenticated.
protected
# addRulesForResearcher( Omeka\Permissions\Acl $acl )
Add rules for "researcher" role.
protected
# addRulesForAuthor( Omeka\Permissions\Acl $acl )
Add rules for "author" role.
protected
# addRulesForReviewer( Omeka\Permissions\Acl $acl )
Add rules for "reviewer" role.
protected
# addRulesForEditor( Omeka\Permissions\Acl $acl )
Add rules for "editor" role.
protected
# addRulesForSiteAdmin( Omeka\Permissions\Acl $acl )
Add rules for "site_admin" role.
protected
# addRulesForGlobalAdmin( Omeka\Permissions\Acl $acl )
Add rules for "global_admin" role.
protected
# aggregate( array $assertions , string $mode = 'all' )
Create an assertion aggregate from the given assertions and the given mode. This is just a convenience method to avoid having to write the somewhat verbose aggregate code over and over within the grants.