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

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

공개 메소드들

메소드 설명
__construct ( Doctrine\Common\Persistence\ObjectManager $objectManager, Sulu\Component\Security\Authentication\RoleRepositoryInterface $roleRepository, Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface $accessControlRepository, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter )
getPermissions ( string $type, string $identifier ) : array Returns the permissions for all security identities.
setPermissions ( string $type, string $identifier, $permissions ) Sets the permissions for the object with the given class and id for the given security identity.
supports ( string $type ) : boolean Returns whether this provider supports the given type.

메소드 상세

__construct() 공개 메소드

public __construct ( Doctrine\Common\Persistence\ObjectManager $objectManager, Sulu\Component\Security\Authentication\RoleRepositoryInterface $roleRepository, Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface $accessControlRepository, Sulu\Component\Security\Authorization\MaskConverterInterface $maskConverter )
$objectManager Doctrine\Common\Persistence\ObjectManager
$roleRepository Sulu\Component\Security\Authentication\RoleRepositoryInterface
$accessControlRepository Sulu\Component\Security\Authorization\AccessControl\AccessControlRepositoryInterface
$maskConverter Sulu\Component\Security\Authorization\MaskConverterInterface

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

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 name of the class to protect
$identifier string
$permissions

supports() 공개 메소드

Returns whether this provider supports the given type.
public supports ( string $type ) : boolean
$type string The name of the class protect
리턴 boolean