Property | Type | Description | |
---|---|---|---|
$roleService | eZ\Publish\API\Repository\roleService |
Method | Description | |
---|---|---|
__construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\RoleService $roleService ) | ||
ensureRoleExists ( string $name ) : eZ\Publish\API\Repository\Values\User\Role | Make sure a Role with name $name exists in parent group. | |
getRole ( string $identifier ) : eZ\Publish\API\Repository\Values\User\Role | Fetches the role with identifier. | |
iDontSeeRole ( $name ) | ||
iHaveRole ( $name ) : eZ\Publish\API\Repository\Values\User\Role | ||
iSeeRole ( $name ) | ||
noAssginedPolicies ( $name ) | ||
noAssigneGroups ( $name ) |
public __construct ( eZ\Publish\API\Repository\Repository $repository, eZ\Publish\API\Repository\RoleService $roleService ) | ||
$repository | eZ\Publish\API\Repository\Repository | |
$roleService | eZ\Publish\API\Repository\RoleService |
public ensureRoleExists ( string $name ) : eZ\Publish\API\Repository\Values\User\Role | ||
$name | string | Role identifier |
return | eZ\Publish\API\Repository\Values\User\Role |
public iHaveRole ( $name ) : eZ\Publish\API\Repository\Values\User\Role | ||
return | eZ\Publish\API\Repository\Values\User\Role |