PHP Interface Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface

Afficher le fichier Open project: sulu/sulu Interface Usage Examples

Méthodes publiques

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

Method Details

getPermissions() public méthode

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

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

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