Property | Type | Description | |
---|---|---|---|
$accessControlProviders | Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface[] |
Method | Description | |
---|---|---|
__construct ( Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
addAccessControlProvider ( Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface $accessControlProvider ) | Adds a new AccessControlProvider. | |
getPermissions ( $type, $identifier ) | ||
getUserPermissionByArray ( $locale, $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) | ||
getUserPermissions ( |
||
setPermissions ( $type, $identifier, $permissions ) |
Method | Description | |
---|---|---|
cumulatePermissions ( array $userPermission, array $permissions ) : mixed | Merges all the true values for the given permission arrays. | |
getAccessControlProvider ( string $type ) : Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface | Returns the AccessControlProvider, which supports the given type. | |
getUserObjectPermission ( |
Returns the permissions for the given object for the given user. | |
getUserObjectPermissionByArray ( array $permissions, Sulu\Component\Security\Authentication\UserInterface $user ) : array | Returns the permissions for the given permission array and the given user. | |
getUserRoleSecurityContextPermission ( string $locale, string $securityContext, Sulu\Bundle\SecurityBundle\Entity\UserRole $userRole, boolean $checkPermissionType ) : array | Returns the permissions for the given security context for the given user role. | |
getUserSecurityContextPermissions ( string $locale, string $securityContext, Sulu\Component\Security\Authentication\UserInterface $user, boolean $checkPermissionType ) : array | Returns the permissions for the given security context for the given user. | |
mapPermissions ( array $userPermission, array $permissions, callable $reduce ) : array | ||
restrictPermissions ( array $userPermission, array $permissions ) : mixed | Merges all the values for the given permission arrays. Only returns true if all values are true. |
public __construct ( Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher ) | ||
$maskConverter | Sulu\Component\Security\Authorization\MaskConverterInterface | |
$eventDispatcher | Symfony\Component\EventDispatcher\EventDispatcherInterface |
public addAccessControlProvider ( Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface $accessControlProvider ) | ||
$accessControlProvider | Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface | The AccessControlProvider to add |
public getUserPermissionByArray ( $locale, $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user ) | ||
$user | Sulu\Component\Security\Authentication\UserInterface |
public getUserPermissions ( |
||
$securityCondition | ||
$user | Sulu\Component\Security\Authentication\UserInterface |