Property | Type | Description | |
---|---|---|---|
$bundlePrefix | |||
$entityKey | |||
$fieldDescriptors | - Holds the field descriptors for the list response TODO: Create a Manager and move the field descriptors to the manager | ||
$fieldsDefault | |||
$fieldsExcluded | |||
$fieldsHidden | |||
$fieldsRelations | |||
$fieldsSortOrder | |||
$fieldsTranslationKeys |
Method | Description | |
---|---|---|
cgetAction ( |
returns all roles. | |
deleteAction ( $id ) : |
Deletes the role with the given id. | |
getAction ( $id ) : |
Returns the role with the given id. | |
getFieldsAction ( ) : mixed | returns all fields that can be used by list. | |
getSecurityContext ( ) | ||
postAction ( |
Creates a new role with the given data. | |
putAction ( |
Updates the role with the given id and the data given by the request. | |
putFieldsAction ( ) | persists a setting. |
Method | Description | |
---|---|---|
addPermission ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissionData ) : boolean | Adds a permission to the given role. | |
convertRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : array | Converts a role object into an array for the rest service. | |
getFieldDescriptors ( ) | TODO: move field descriptors to a manager | |
processPermissions ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissions ) : boolean | Process all permissions from request. |
Method | Description | |
---|---|---|
checkSecurityTypeData ( $securityTypeData ) : boolean | Checks if the data of the security type is correct. | |
getRoleRepository ( ) : Sulu\Component\Security\Authentication\RoleRepositoryInterface | ||
initFieldDescriptors ( ) | ||
setSecurityType ( Sulu\Component\Security\Authentication\RoleInterface $role, $securityTypeData ) | Sets the securityType from the given data to the role. | |
updatePermission ( |
Updates an already existing permission. |
protected addPermission ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissionData ) : boolean | ||
$role | Sulu\Component\Security\Authentication\RoleInterface | |
$permissionData | ||
return | boolean |
public cgetAction ( |
||
$request | ||
return |
protected convertRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : array | ||
$role | Sulu\Component\Security\Authentication\RoleInterface | |
return | array |
public deleteAction ( $id ) : |
||
$id | ||
return |
public getAction ( $id ) : |
||
$id | ||
return |
protected getFieldDescriptors ( ) |
public getFieldsAction ( ) : mixed | ||
return | mixed |
public postAction ( |
||
$request | ||
return |
protected processPermissions ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissions ) : boolean | ||
$role | Sulu\Component\Security\Authentication\RoleInterface | The contact on which is worked |
$permissions | ||
return | boolean | True if the processing was successful, otherwise false |
public putAction ( |
||
$request | ||
$id | ||
return |
protected $fieldDescriptors |