PHP Class Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegePointcutFilter

Inheritance: implements Neos\Flow\Aop\Pointcut\PointcutFilterInterface
Afficher le fichier Open project: neos/flow-development-collection

Protected Properties

Свойство Type Description
$filters Neos\Flow\Aop\Pointcut\PointcutFilterComposite[]
$methodPermissionCache Neos\Cache\Frontend\VariableFrontend
$methodPermissions array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$runtimeExpressionEvaluator Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator

Méthodes publiques

Méthode Description
getRuntimeEvaluationsDefinition ( ) : array Returns runtime evaluations for the pointcut.
hasRuntimeEvaluationsDefinition ( ) : boolean Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
initializeObject ( ) : void
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early so we can't rely on AOP for the property injection
matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean Checks if the specified class and method matches against the filter, i.e. if there is a policy entry to intercept this method.
reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex This method is used to optimize the matching process.
savePolicyCache ( ) : void Save the found matches to the cache.

Méthodes protégées

Méthode Description
buildPointcutFilters ( ) : boolean Builds the needed pointcut filters for matching the policy privileges

Method Details

buildPointcutFilters() protected méthode

Builds the needed pointcut filters for matching the policy privileges
protected buildPointcutFilters ( ) : boolean
Résultat boolean

getRuntimeEvaluationsDefinition() public méthode

Returns runtime evaluations for the pointcut.
public getRuntimeEvaluationsDefinition ( ) : array
Résultat array Runtime evaluations

hasRuntimeEvaluationsDefinition() public méthode

Returns TRUE if this filter holds runtime evaluations for a previously matched pointcut
public hasRuntimeEvaluationsDefinition ( ) : boolean
Résultat boolean TRUE if this filter has runtime evaluations

initializeObject() public méthode

public initializeObject ( ) : void
Résultat void

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

matches() public méthode

This method also creates a cache entry for every method, to cache the associated roles and privileges.
public matches ( string $className, string $methodName, string $methodDeclaringClassName, mixed $pointcutQueryIdentifier ) : boolean
$className string Name of the class to check the name of
$methodName string Name of the method to check the name of
$methodDeclaringClassName string Name of the class the method was originally declared in
$pointcutQueryIdentifier mixed Some identifier for this query - must at least differ from a previous identifier. Used for circular reference detection.
Résultat boolean TRUE if the names match, otherwise FALSE

reduceTargetClassNames() public méthode

This method is used to optimize the matching process.
public reduceTargetClassNames ( ClassNameIndex $classNameIndex ) : ClassNameIndex
$classNameIndex Neos\Flow\Aop\Builder\ClassNameIndex
Résultat Neos\Flow\Aop\Builder\ClassNameIndex

savePolicyCache() public méthode

Save the found matches to the cache.
public savePolicyCache ( ) : void
Résultat void

Property Details

$filters protected_oe property

protected PointcutFilterComposite[],Neos\Flow\Aop\Pointcut $filters
Résultat Neos\Flow\Aop\Pointcut\PointcutFilterComposite[]

$methodPermissionCache protected_oe property

protected VariableFrontend,Neos\Cache\Frontend $methodPermissionCache
Résultat Neos\Cache\Frontend\VariableFrontend

$methodPermissions protected_oe property

protected array $methodPermissions
Résultat array

$objectManager protected_oe property

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

$runtimeExpressionEvaluator protected_oe property

protected RuntimeExpressionEvaluator,Neos\Flow\Aop\Pointcut $runtimeExpressionEvaluator
Résultat Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator