PHP Интерфейс Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface

Показать файл Открыть проект Примеры использования интерфейса

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

Метод Описание
getPermissions ( string $type, string $identifier ) : array Returns the permissions for all security identities.
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 ( string $type, string $identifier, $permissions ) Sets the permissions for the object with the given class and id for the given security identity.

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

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

Returns the permissions for all security identities.
public getPermissions ( string $type, string $identifier ) : array
$type string The type of the protected object
$identifier string The identifier of the protected object
Результат array

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() публичный Метод

Sets the permissions for the object with the given class and id for the given security identity.
public setPermissions ( string $type, string $identifier, $permissions )
$type string The type of the protected object
$identifier string The identifier of the protected object
$permissions