PHP 클래스 Sulu\Component\Security\Authorization\AccessControl\AccessControlManager

상속: implements Sulu\Component\Security\Authorization\AccessControl\AccessControlManagerInterface
파일 보기 프로젝트 열기: sulu/sulu 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$accessControlProviders Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface[]

공개 메소드들

메소드 설명
__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 ( SecurityCondition $securityCondition, Sulu\Component\Security\Authentication\UserInterface $user )
setPermissions ( $type, $identifier, $permissions )

비공개 메소드들

메소드 설명
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 ( SecurityCondition $securityCondition, Sulu\Component\Security\Authentication\UserInterface $user ) : array 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.

메소드 상세

__construct() 공개 메소드

public __construct ( Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$maskConverter Sulu\Component\Security\Authorization\MaskConverterInterface
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

addAccessControlProvider() 공개 메소드

Adds a new AccessControlProvider.
public addAccessControlProvider ( Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface $accessControlProvider )
$accessControlProvider Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface The AccessControlProvider to add

getPermissions() 공개 메소드

public getPermissions ( $type, $identifier )

getUserPermissionByArray() 공개 메소드

public getUserPermissionByArray ( $locale, $securityContext, $objectPermissionsByRole, Sulu\Component\Security\Authentication\UserInterface $user )
$user Sulu\Component\Security\Authentication\UserInterface

getUserPermissions() 공개 메소드

public getUserPermissions ( SecurityCondition $securityCondition, Sulu\Component\Security\Authentication\UserInterface $user )
$securityCondition Sulu\Component\Security\Authorization\SecurityCondition
$user Sulu\Component\Security\Authentication\UserInterface

setPermissions() 공개 메소드

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

프로퍼티 상세

$accessControlProviders 보호되어 있는 프로퍼티

protected AccessControlProviderInterface[],Sulu\Component\Security\Authorization\AccessControl $accessControlProviders
리턴 Sulu\Component\Security\Authorization\AccessControl\AccessControlProviderInterface[]