PHP Class Sulu\Component\Security\Authorization\AccessControl\SymfonyAccessControlManager

Responsible for setting the permissions on a specific object.
Deprecation: will be removed with 1.2
Inheritance: implements Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface
Exibir arquivo Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Symfony\Component\Security\Acl\Model\MutableAclProviderInterface $aclProvider, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
getPermissions ( $type, $identifier )
getUserPermissionByArray ( string $locale, string $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) : array Returns the permissions regarding an array of role permissions and its security context for a given user.
getUserPermissions ( SecurityCondition $securityCondition, Sulu\Component\Security\Authentication\UserInterface $user ) : array Returns the permissions regarding an object and its security context for a given user.
setPermissions ( $type, $identifier, $permissions )

Private Methods

Method Description
setPermission ( string $type, string $identifier, string $securityIdentity, array $permissions ) Sets the permission for a single security identity.

Method Details

__construct() public method

public __construct ( Symfony\Component\Security\Acl\Model\MutableAclProviderInterface $aclProvider, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$aclProvider Symfony\Component\Security\Acl\Model\MutableAclProviderInterface
$maskConverter Sulu\Component\Security\Authorization\MaskConverterInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

getPermissions() public method

public getPermissions ( $type, $identifier )

getUserPermissionByArray() public method

Returns the permissions regarding an array of role permissions and its security context for a given user.
public getUserPermissionByArray ( string $locale, string $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) : array
$locale string
$securityContext string
$objectPermissionsByRole
$user Sulu\Component\Security\Authentication\UserInterface The user for which the security is returned
return array

getUserPermissions() public method

Returns the permissions regarding an object and its security context for a given user.
public getUserPermissions ( SecurityCondition $securityCondition, Sulu\Component\Security\Authentication\UserInterface $user ) : array
$securityCondition Sulu\Component\Security\Authorization\SecurityCondition The condition to check
$user Sulu\Component\Security\Authentication\UserInterface The user for which the security is returned
return array

setPermissions() public method

public setPermissions ( $type, $identifier, $permissions )