PHP Class Neos\Flow\Security\Authorization\Privilege\AbstractPrivilege

Inheritance: implements Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode Description
buildCacheEntryIdentifier ( ) : void Initializes the unique cache entry identifier

Method Details

__construct() public méthode

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() protected méthode

Initializes the unique cache entry identifier
protected buildCacheEntryIdentifier ( ) : void
Résultat void

getCacheEntryIdentifier() public méthode

Unique identifier of this privilege
public getCacheEntryIdentifier ( ) : string
Résultat string

getMatcher() public méthode

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
Résultat string

getParameters() public méthode

public getParameters ( ) : Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]
Résultat Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]

getParsedMatcher() public méthode

@see getMatcher()
public getParsedMatcher ( ) : string
Résultat string

getPermission() public méthode

public getPermission ( ) : integer
Résultat integer

getPrivilegeTarget() public méthode

The related privilege target
public getPrivilegeTarget ( ) : PrivilegeTarget
Résultat PrivilegeTarget

getPrivilegeTargetIdentifier() public méthode

Unique identifier for the related privilege target (e.g. "Neos.Flow:PublicMethods")
public getPrivilegeTargetIdentifier ( ) : string
Résultat string

hasParameters() public méthode

public hasParameters ( ) : boolean
Résultat boolean

injectObjectManager() public méthode

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
Résultat void

isAbstained() public méthode

public isAbstained ( ) : boolean
Résultat boolean

isDenied() public méthode

public isDenied ( ) : boolean
Résultat boolean

isGranted() public méthode

public isGranted ( ) : boolean
Résultat boolean

Property Details

$cacheEntryIdentifier protected_oe property

Unique identifier of this privilege (used for cache entries)
protected string $cacheEntryIdentifier
Résultat string

$matcher protected_oe property

protected string $matcher
Résultat string

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Résultat Neos\Flow\ObjectManagement\ObjectManagerInterface

$parameters protected_oe property

protected PrivilegeParameterInterface[],Neos\Flow\Security\Authorization\Privilege\Parameter $parameters
Résultat Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterInterface[]

$parsedMatcher protected_oe property

protected string $parsedMatcher
Résultat string

$permission protected_oe property

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

$privilegeTarget protected_oe property

protected PrivilegeTarget,Neos\Flow\Security\Authorization\Privilege $privilegeTarget
Résultat PrivilegeTarget