PHP Класс Sulu\Component\Security\Authorization\AccessControl\SymfonyAccessControlManager

Responsible for setting the permissions on a specific object.
Устаревший: will be removed with 1.2
Наследование: implements Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Приватные методы

Метод Описание
setPermission ( string $type, string $identifier, string $securityIdentity, array $permissions ) Sets the permission for a single security identity.

Описание методов

__construct() публичный Метод

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 getPermissions ( $type, $identifier )

getUserPermissionByArray() публичный Метод

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
Результат array

getUserPermissions() публичный Метод

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
Результат array

setPermissions() публичный Метод

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