PHP 클래스 Sulu\Bundle\SecurityBundle\Controller\RoleController

상속: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface
파일 보기 프로젝트 열기: sulu/sulu

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ( Request $request ) : Response returns all roles.
deleteAction ( $id ) : Response Deletes the role with the given id.
getAction ( $id ) : Response Returns the role with the given id.
getFieldsAction ( ) : mixed returns all fields that can be used by list.
getSecurityContext ( )
postAction ( Request $request ) : Response Creates a new role with the given data.
putAction ( Request $request, $id ) : Response 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 ( Permission $permission, $permissionData ) : boolean Updates an already existing permission.

메소드 상세

addPermission() 보호된 메소드

Adds a permission to the given role.
protected addPermission ( Sulu\Component\Security\Authentication\RoleInterface $role, $permissionData ) : boolean
$role Sulu\Component\Security\Authentication\RoleInterface
$permissionData
리턴 boolean

cgetAction() 공개 메소드

returns all roles.
public cgetAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

convertRole() 보호된 메소드

Converts a role object into an array for the rest service.
protected convertRole ( Sulu\Component\Security\Authentication\RoleInterface $role ) : array
$role Sulu\Component\Security\Authentication\RoleInterface
리턴 array

deleteAction() 공개 메소드

Deletes the role with the given id.
public deleteAction ( $id ) : Response
$id
리턴 Symfony\Component\HttpFoundation\Response

getAction() 공개 메소드

Returns the role with the given id.
public getAction ( $id ) : Response
$id
리턴 Symfony\Component\HttpFoundation\Response

getFieldDescriptors() 보호된 메소드

TODO: move field descriptors to a manager
protected getFieldDescriptors ( )

getFieldsAction() 공개 메소드

returns all fields that can be used by list.
public getFieldsAction ( ) : mixed
리턴 mixed

getSecurityContext() 공개 메소드

public getSecurityContext ( )

postAction() 공개 메소드

Creates a new role with the given data.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
리턴 Symfony\Component\HttpFoundation\Response

processPermissions() 보호된 메소드

Process all permissions from 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

putAction() 공개 메소드

Updates the role with the given id and the data given by the request.
public putAction ( Request $request, $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id
리턴 Symfony\Component\HttpFoundation\Response

putFieldsAction() 공개 메소드

persists a setting.
public putFieldsAction ( )

프로퍼티 상세

$bundlePrefix 보호되어 있는 프로퍼티

protected $bundlePrefix

$entityKey 보호되어 있는 정적으로 프로퍼티

protected static $entityKey

$fieldDescriptors 보호되어 있는 프로퍼티

- Holds the field descriptors for the list response TODO: Create a Manager and move the field descriptors to the manager
protected $fieldDescriptors

$fieldsDefault 보호되어 있는 프로퍼티

protected $fieldsDefault

$fieldsExcluded 보호되어 있는 프로퍼티

protected $fieldsExcluded

$fieldsHidden 보호되어 있는 프로퍼티

protected $fieldsHidden

$fieldsRelations 보호되어 있는 프로퍼티

protected $fieldsRelations

$fieldsSortOrder 보호되어 있는 프로퍼티

protected $fieldsSortOrder

$fieldsTranslationKeys 보호되어 있는 프로퍼티

protected $fieldsTranslationKeys