프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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. |
메소드 | 설명 | |
---|---|---|
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 | ||
리턴 | boolean |
public cgetAction ( |
||
$request | ||
리턴 |
protected convertRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : array | ||
$role | Sulu\Component\Security\Authentication\RoleInterface | |
리턴 | array |
public deleteAction ( $id ) : |
||
$id | ||
리턴 |
public getAction ( $id ) : |
||
$id | ||
리턴 |
protected getFieldDescriptors ( ) |
public getFieldsAction ( ) : mixed | ||
리턴 | mixed |
public postAction ( |
||
$request | ||
리턴 |
protected processPermissions ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissions ) : boolean | ||
$role | Sulu\Component\Security\Authentication\RoleInterface | The contact on which is worked |
$permissions | ||
리턴 | boolean | True if the processing was successful, otherwise false |
public putAction ( |
||
$request | ||
$id | ||
리턴 |
protected $fieldDescriptors |