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

Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$identifier string
$matcher string
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$parameterDefinitions Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterDefinition[]
$privilegeClassName string

Méthodes publiques

Méthode 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 méthode

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

createPrivilege() public méthode

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
Résultat Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface

getIdentifier() public méthode

public getIdentifier ( ) : string
Résultat string

getMatcher() public méthode

public getMatcher ( ) : string
Résultat string

getParameterDefinitions() public méthode

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

getPrivilegeClassName() public méthode

public getPrivilegeClassName ( ) : 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

Property Details

$identifier protected_oe property

protected string $identifier
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

$parameterDefinitions protected_oe property

protected PrivilegeParameterDefinition[],Neos\Flow\Security\Authorization\Privilege\Parameter $parameterDefinitions
Résultat Neos\Flow\Security\Authorization\Privilege\Parameter\PrivilegeParameterDefinition[]

$privilegeClassName protected_oe property

protected string $privilegeClassName
Résultat string