Method | Description | |
---|---|---|
__construct ( Doctrine\Common\Persistence\ObjectManager $objectManager, Sulu\Component\Security\Authentication\RoleRepositoryInterface $roleRepository, Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface $accessControlRepository, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter ) | ||
getPermissions ( string $type, string $identifier ) : array | Returns the permissions for all security identities. | |
setPermissions ( string $type, string $identifier, $permissions ) | Sets the permissions for the object with the given class and id for the given security identity. | |
supports ( string $type ) : boolean | Returns whether this provider supports the given type. |
public __construct ( Doctrine\Common\Persistence\ObjectManager $objectManager, Sulu\Component\Security\Authentication\RoleRepositoryInterface $roleRepository, Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface $accessControlRepository, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter ) | ||
$objectManager | Doctrine\Common\Persistence\ObjectManager | |
$roleRepository | Sulu\Component\Security\Authentication\RoleRepositoryInterface | |
$accessControlRepository | Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface | |
$maskConverter | Sulu\Component\Security\Authorization\MaskConverterInterface |
public setPermissions ( string $type, string $identifier, $permissions ) | ||
$type | string | The name of the class to protect |
$identifier | string | |
$permissions |