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

Inheritance: extends Neos\Flow\Security\Authorization\Privilege\AbstractPrivilege, implements Neos\Flow\Security\Authorization\Privilege\Method\MethodPrivilegeInterface
Show file Open project: neos/flow-development-collection

Protected Properties

Property Type Description
$methodPermissions array
$pointcutFilter Neos\Flow\Aop\Pointcut\PointcutFilter
$runtimeExpressionEvaluator Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator

Public Methods

Method Description
getPointcutFilterComposite ( ) : PointcutFilterComposite Returns the pointcut filter composite, matching all methods covered by this privilege
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void This object is created very early so we can't rely on AOP for the property injection This method also takes care of initializing caches and other dependencies.
matchesMethod ( string $className, string $methodName ) : boolean Returns TRUE, if this privilege covers the given method
matchesSubject ( Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface $subject ) : boolean Returns TRUE, if this privilege covers the given subject (join point)

Protected Methods

Method Description
initialize ( ) : void

Method Details

getPointcutFilterComposite() public method

Returns the pointcut filter composite, matching all methods covered by this privilege
public getPointcutFilterComposite ( ) : PointcutFilterComposite
return Neos\Flow\Aop\Pointcut\PointcutFilterComposite

initialize() protected method

protected initialize ( ) : void
return void

injectObjectManager() public method

This object is created very early so we can't rely on AOP for the property injection This method also takes care of initializing caches and other dependencies.
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
return void

matchesMethod() public method

Returns TRUE, if this privilege covers the given method
public matchesMethod ( string $className, string $methodName ) : boolean
$className string
$methodName string
return boolean

matchesSubject() public method

Returns TRUE, if this privilege covers the given subject (join point)
public matchesSubject ( Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface $subject ) : boolean
$subject Neos\Flow\Security\Authorization\Privilege\PrivilegeSubjectInterface
return boolean

Property Details

$methodPermissions protected static property

protected static array $methodPermissions
return array

$pointcutFilter protected property

protected PointcutFilter,Neos\Flow\Aop\Pointcut $pointcutFilter
return Neos\Flow\Aop\Pointcut\PointcutFilter

$runtimeExpressionEvaluator protected property

protected RuntimeExpressionEvaluator,Neos\Flow\Aop\Pointcut $runtimeExpressionEvaluator
return Neos\Flow\Aop\Pointcut\RuntimeExpressionEvaluator