PHP 클래스 Neos\Flow\Security\Authorization\Privilege\AbstractPrivilege

상속: implements Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$cacheEntryIdentifier string Unique identifier of this privilege (used for cache entries)
$matcher string
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$parameters Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
$parsedMatcher string
$permission One of the constants ABSTAIN, GRANT or DENY
$privilegeTarget PrivilegeTarget

공개 메소드들

메소드 설명
__construct ( PrivilegeTarget $privilegeTarget, string $matcher, string $permission, array $parameters )
getCacheEntryIdentifier ( ) : string Unique identifier of this privilege
getMatcher ( ) : string A matcher string, describing the privilegeTarget (e.g. pointcut expression for methods or EEL expression for entities)
getParameters ( ) : Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
getParsedMatcher ( ) : string Returns the matcher string with replaced parameter markers.
getPermission ( ) : integer
getPrivilegeTarget ( ) : PrivilegeTarget The related privilege target
getPrivilegeTargetIdentifier ( ) : string Unique identifier for the related privilege target (e.g. "Neos.Flow:PublicMethods")
hasParameters ( ) : boolean
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early so we can't rely on AOP for the property injection
isAbstained ( ) : boolean
isDenied ( ) : boolean
isGranted ( ) : boolean

보호된 메소드들

메소드 설명
buildCacheEntryIdentifier ( ) : void Initializes the unique cache entry identifier

메소드 상세

__construct() 공개 메소드

public __construct ( PrivilegeTarget $privilegeTarget, string $matcher, string $permission, array $parameters )
$privilegeTarget PrivilegeTarget
$matcher string
$permission string One of the constants GRANT, DENY or ABSTAIN
$parameters array

buildCacheEntryIdentifier() 보호된 메소드

Initializes the unique cache entry identifier
protected buildCacheEntryIdentifier ( ) : void
리턴 void

getCacheEntryIdentifier() 공개 메소드

Unique identifier of this privilege
public getCacheEntryIdentifier ( ) : string
리턴 string

getMatcher() 공개 메소드

Note: This returns the raw matcher string that might contain parameter placeholders. If you want to return the parsed matcher with placeholders replaced, use getParsedMatcher() instead.
public getMatcher ( ) : string
리턴 string

getParameters() 공개 메소드

public getParameters ( ) : Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
리턴 Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]

getParsedMatcher() 공개 메소드

@see getMatcher()
public getParsedMatcher ( ) : string
리턴 string

getPermission() 공개 메소드

public getPermission ( ) : integer
리턴 integer

getPrivilegeTarget() 공개 메소드

The related privilege target
public getPrivilegeTarget ( ) : PrivilegeTarget
리턴 PrivilegeTarget

getPrivilegeTargetIdentifier() 공개 메소드

Unique identifier for the related privilege target (e.g. "Neos.Flow:PublicMethods")

hasParameters() 공개 메소드

public hasParameters ( ) : boolean
리턴 boolean

injectObjectManager() 공개 메소드

This object is created very early so we can't rely on AOP for the property injection
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
리턴 void

isAbstained() 공개 메소드

public isAbstained ( ) : boolean
리턴 boolean

isDenied() 공개 메소드

public isDenied ( ) : boolean
리턴 boolean

isGranted() 공개 메소드

public isGranted ( ) : boolean
리턴 boolean

프로퍼티 상세

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

Unique identifier of this privilege (used for cache entries)
protected string $cacheEntryIdentifier
리턴 string

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

protected string $matcher
리턴 string

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
리턴 Neos\Flow\ObjectManagement\ObjectManagerInterface

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

protected PrivilegeParameterInterface[],Neos\Flow\Security\Authorization\Privilege\Parameter $parameters
리턴 Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]

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

protected string $parsedMatcher
리턴 string

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

One of the constants ABSTAIN, GRANT or DENY
protected $permission

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

protected PrivilegeTarget,Neos\Flow\Security\Authorization\Privilege $privilegeTarget
리턴 PrivilegeTarget