Свойство | Тип | Описание | |
---|---|---|---|
$configurationManager | |||
$initialized | boolean | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$policyConfiguration | array | ||
$privilegeTargets | |||
$roles |
Метод | Описание | |
---|---|---|
getAllPrivilegesByType ( string $type ) : array | Returns all privileges of the given type | |
getPrivilegeTargetByIdentifier ( string $privilegeTargetIdentifier ) : |
Returns the privilege target identified by the given string | |
getPrivilegeTargets ( ) : |
Returns all configured privilege targets | |
getRole ( string $roleIdentifier ) : |
Returns a Role object configured in the PolicyService | |
getRoles ( boolean $includeAbstract = false ) : |
Returns an array of all configured roles | |
hasRole ( string $roleIdentifier ) : boolean | Checks if a role exists | |
injectConfigurationManager ( |
This object is created very early so we can't rely on AOP for the property injection | |
injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | This object is created very early so we can't rely on AOP for the property injection | |
reset ( ) : void | Resets the PolicyService to behave transparently during functional testing. |
Метод | Описание | |
---|---|---|
emitConfigurationLoaded ( array &$policyConfiguration ) : void | Emits a signal when the policy configuration has been loaded | |
emitRolesInitialized ( array &$roles ) : void | Emits a signal when roles have been initialized | |
initialize ( ) : void | Parses the global policy configuration and initializes roles and privileges accordingly | |
initializePrivilegeTargets ( ) : void | Initialized all configured privilege targets from the policy definitions |
protected emitConfigurationLoaded ( array &$policyConfiguration ) : void | ||
$policyConfiguration | array | The policy configuration |
Результат | void |
protected emitRolesInitialized ( array &$roles ) : void | ||
$roles | array | |
Результат | void |
public getAllPrivilegesByType ( string $type ) : array | ||
$type | string | Full qualified class or interface name |
Результат | array |
public getPrivilegeTargetByIdentifier ( string $privilegeTargetIdentifier ) : |
||
$privilegeTargetIdentifier | string | Identifier of a privilege target |
Результат |
public getPrivilegeTargets ( ) : |
||
Результат |
protected initialize ( ) : void | ||
Результат | void |
protected initializePrivilegeTargets ( ) : void | ||
Результат | void |
public injectConfigurationManager ( |
||
$configurationManager | The configuration manager | |
Результат | void |
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
Результат | void |
protected ConfigurationManager,Neos\Flow\Configuration $configurationManager | ||
Результат |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
Результат | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PrivilegeTarget[],Neos\Flow\Security\Authorization\Privilege $privilegeTargets | ||
Результат |