PHP Class Sulu\Bundle\SecurityBundle\Controller\GroupController

Inheritance: extends Sulu\Component\Rest\RestController, implements FOS\RestBundle\Routing\ClassResourceInterface, implements Sulu\Component\Security\SecuredControllerInterface
Afficher le fichier Open project: sulu/sulu

Protected Properties

Свойство Type Description
$entityKey
$entityName
$fieldDescriptors - Holds the field descriptors for the list response

Méthodes publiques

Méthode Description
__construct ( ) TODO: move the field descriptors to a manager
cgetAction ( Request $request ) : Response returns all groups.
deleteAction ( $id ) : Response Deletes the group with the given id.
getAction ( $id ) : Response Returns the group with the given id.
getSecurityContext ( ) : mixed Returns the SecurityContext required for the controller.
postAction ( Request $request ) : Response Creates a new group with the given data.
putAction ( Request $request, $id ) : Response Updates the group with the given id and the data given by the request.
setParent ( $group )

Méthodes protégées

Méthode Description
processRoles ( Group $group, array $roles ) : boolean Process all roles from request.

Private Methods

Méthode Description
addRole ( Group $group, array $roleData ) : boolean Adds the given role to the group.
updateRole ( Sulu\Component\Security\Authentication\RoleInterface $role, $roleData ) : boolean Updates an already existing role.

Method Details

__construct() public méthode

TODO: move the field descriptors to a manager
public __construct ( )

cgetAction() public méthode

returns all groups.
public cgetAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

deleteAction() public méthode

Deletes the group with the given id.
public deleteAction ( $id ) : Response
$id
Résultat Symfony\Component\HttpFoundation\Response

getAction() public méthode

Returns the group with the given id.
public getAction ( $id ) : Response
$id
Résultat Symfony\Component\HttpFoundation\Response

getSecurityContext() public méthode

Returns the SecurityContext required for the controller.
public getSecurityContext ( ) : mixed
Résultat mixed

postAction() public méthode

Creates a new group with the given data.
public postAction ( Request $request ) : Response
$request Symfony\Component\HttpFoundation\Request
Résultat Symfony\Component\HttpFoundation\Response

processRoles() protected méthode

Process all roles from request.
protected processRoles ( Group $group, array $roles ) : boolean
$group Sulu\Bundle\SecurityBundle\Entity\Group The contact on which is worked
$roles array The roles to process
Résultat boolean True if the processing was successful, otherwise false

putAction() public méthode

Updates the group with the given id and the data given by the request.
public putAction ( Request $request, $id ) : Response
$request Symfony\Component\HttpFoundation\Request
$id
Résultat Symfony\Component\HttpFoundation\Response

setParent() public méthode

public setParent ( $group )
$group

Property Details

$entityKey protected_oe static_oe property

protected static $entityKey

$entityName protected_oe static_oe property

protected static $entityName

$fieldDescriptors protected_oe property

- Holds the field descriptors for the list response
protected $fieldDescriptors