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
Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

__construct() public méthode

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 méthode

public getPermissions ( $type, $identifier )

getUserPermissionByArray() public méthode

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
Résultat array

getUserPermissions() public méthode

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
Résultat array

setPermissions() public méthode

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