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

Datei anzeigen Open project: sulu/sulu Interface Usage Examples

Public Methods

Method 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 method

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
return array

getUserPermissionByArray() public method

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
return array

getUserPermissions() public method

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
return array

setPermissions() public method

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