Свойство | Тип | Описание | |
---|---|---|---|
$abstract | boolean | Whether or not the role is "abstract", meaning it can't be assigned to accounts directly but only serves as a "template role" for other roles to inherit from | |
$identifier | string | The identifier of this role | |
$name | string | The name of this role (without package key) | |
$packageKey | string | The package key this role belongs to (extracted from the identifier) | |
$parentRoles | |||
$privileges | Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] |
Метод | Описание | |
---|---|---|
__construct ( string $identifier, array $parentRoles = [] ) | ||
__toString ( ) : string | Returns the string representation of this role (the identifier) | |
addParentRole ( |
Add a (direct) parent role to this role. | |
addPrivilege ( Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface $privilege ) : void | Add a privilege to this role. | |
getAllParentRoles ( ) : |
Returns all (directly and indirectly reachable) parent roles for the given role. | |
getIdentifier ( ) : string | Returns the fully qualified identifier of this role | |
getName ( ) : string | The name of this role, being the identifier without the package key. | |
getPackageKey ( ) : string | The key of the package that defines this role. | |
getParentRoles ( ) : |
Returns an array of all directly assigned parent roles. | |
getPrivilegeForTarget ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | ||
getPrivileges ( ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] | ||
getPrivilegesByType ( string $className ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] | ||
hasParentRole ( |
Returns TRUE if the given role is a directly assigned parent of this role. | |
isAbstract ( ) : boolean | Whether or not this role is "abstract", meaning it can't be assigned to accounts directly but only serves as a "template role" for other roles to inherit from | |
setAbstract ( boolean $abstract ) : void | ||
setParentRoles ( array $parentRoles ) : void | Assign parent roles to this role. | |
setPrivileges ( array $privileges ) : void | Assign privileges to this role. |
public __construct ( string $identifier, array $parentRoles = [] ) | ||
$identifier | string | The fully qualified identifier of this role (Vendor.Package:Role) |
$parentRoles | array |
public __toString ( ) : string | ||
Результат | string | the string representation of this role |
public addParentRole ( |
||
$parentRole | ||
Результат | void |
public addPrivilege ( Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface $privilege ) : void | ||
$privilege | Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | |
Результат | void |
public getAllParentRoles ( ) : |
||
Результат | Array of parent roles, indexed by role identifier |
public getIdentifier ( ) : string | ||
Результат | string |
public getPackageKey ( ) : string | ||
Результат | string |
public getParentRoles ( ) : |
||
Результат | Array of direct parent roles, indexed by role identifier |
public getPrivilegeForTarget ( string $privilegeTargetIdentifier, array $privilegeParameters = [] ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | ||
$privilegeTargetIdentifier | string | |
$privilegeParameters | array | |
Результат | Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface | the matching privilege or NULL if no privilege exists for the given constraints |
public getPrivileges ( ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] | ||
Результат | Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] | Array of privileges assigned to this role |
public getPrivilegesByType ( string $className ) : Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] | ||
$className | string | Fully qualified name of the Privilege class to filter for |
Результат | Neos\Flow\Security\Authorization\Privilege\PrivilegeInterface[] |
public hasParentRole ( |
||
$role | ||
Результат | boolean |
public isAbstract ( ) : boolean | ||
Результат | boolean |
public setAbstract ( boolean $abstract ) : void | ||
$abstract | boolean | |
Результат | void |
public setParentRoles ( array $parentRoles ) : void | ||
$parentRoles | array | indexed by role identifier |
Результат | void |
public setPrivileges ( array $privileges ) : void | ||
$privileges | array | |
Результат | void |
protected bool $abstract | ||
Результат | boolean |
protected string $identifier | ||
Результат | string |
protected string $name | ||
Результат | string |
protected string $packageKey | ||
Результат | string |
protected Role[],Neos\Flow\Security\Policy $parentRoles | ||
Результат |