Property | Type | Description | |
---|---|---|---|
$configurationManager | |||
$initialized | boolean | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$policyConfiguration | array | ||
$privilegeTargets | |||
$roles |
Method | Description | |
---|---|---|
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. |
Method | Description | |
---|---|---|
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 |
return | void |
protected emitRolesInitialized ( array &$roles ) : void | ||
$roles | array | |
return | void |
public getAllPrivilegesByType ( string $type ) : array | ||
$type | string | Full qualified class or interface name |
return | array |
public getPrivilegeTargetByIdentifier ( string $privilegeTargetIdentifier ) : |
||
$privilegeTargetIdentifier | string | Identifier of a privilege target |
return |
public getPrivilegeTargets ( ) : |
||
return |
protected initialize ( ) : void | ||
return | void |
protected initializePrivilegeTargets ( ) : void | ||
return | void |
public injectConfigurationManager ( |
||
$configurationManager | The configuration manager | |
return | void |
public injectObjectManager ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : void | ||
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | |
return | void |
protected ConfigurationManager,Neos\Flow\Configuration $configurationManager | ||
return |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
return | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected PrivilegeTarget[],Neos\Flow\Security\Authorization\Privilege $privilegeTargets | ||
return |