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

Mostra file Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Property Type Description
$identifier string
$matcher string
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$parameterDefinitions Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterDefinition[]
$privilegeClassName string

Public Methods

Method Description
__construct ( string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [] )
createPrivilege ( string $permission, array $parameters = [] ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface
getIdentifier ( ) : string
getMatcher ( ) : string
getParameterDefinitions ( ) : PrivilegeParameterDefinition[]
getPrivilegeClassName ( ) : string
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

Method Details

__construct() public method

public __construct ( string $identifier, string $privilegeClassName, string $matcher, array $parameterDefinitions = [] )
$identifier string
$privilegeClassName string
$matcher string
$parameterDefinitions array

createPrivilege() public method

public createPrivilege ( string $permission, array $parameters = [] ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface
$permission string one of "GRANT", "DENY" or "ABSTAIN"
$parameters array Optional key/value array with parameter names and -values
return Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface

getIdentifier() public method

public getIdentifier ( ) : string
return string

getMatcher() public method

public getMatcher ( ) : string
return string

getParameterDefinitions() public method

public getParameterDefinitions ( ) : PrivilegeParameterDefinition[]
return Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterDefinition[]

getPrivilegeClassName() public method

public getPrivilegeClassName ( ) : string
return string

hasParameters() public method

public hasParameters ( ) : boolean
return boolean

injectObjectManager() public method

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
return void

Property Details

$identifier protected_oe property

protected string $identifier
return string

$matcher protected_oe property

protected string $matcher
return string

$objectManager protected_oe property

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
return Neos\Flow\ObjectManagement\ObjectManagerInterface

$parameterDefinitions protected_oe property

protected PrivilegeParameterDefinition[],Neos\Flow\Security\Authorization\Privilege\Parameter $parameterDefinitions
return Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterDefinition[]

$privilegeClassName protected_oe property

protected string $privilegeClassName
return string