public function loadRoleByIdentifier($name)
    {
        $response = $this->client->request(
            'GET',
            $this->requestParser->generate('roleByIdentifier', array('role' => $name)),
            new Message(
                array('Accept' => $this->outputVisitor->getMediaType('RoleList'))
            )
        );

        $result = $this->inputDispatcher->parse($response);

        return reset($result);
    }
public function loadRoleByIdentifier($name)
    {
        $response = $this->client->request(
            'GET',
            $this->requestParser->generate('roleByIdentifier', array('role' => $name)),
            new Message(
                array('Accept' => $this->outputVisitor->getMediaType('RoleList'))
            )
        );

        $result = $this->inputDispatcher->parse($response);

        return reset($result);
    }
public function loadRoleByIdentifier ( $ name ) { $ response = $ this -> client -> request ( 'GET' , $ this -> requestParser -> generate ( 'roleByIdentifier' , array ( 'role' => $ name ) ) , new Message ( array ( 'Accept' => $ this -> outputVisitor -> getMediaType ( 'RoleList' ) ) ) ) ; $ result = $ this -> inputDispatcher -> parse ( $ response ) ; return reset ( $ result ) ; }
Loads a role for the given name.

@throws \eZ\Publish\API\Repository\Exceptions\UnauthorizedException if the authenticated user is not allowed to read this role
@throws \eZ\Publish\API\Repository\Exceptions\NotFoundException if a role with the given name was not found

@param string $name

@return \eZ\Publish\API\Repository\Values\User\Role
Loads a role for the given name .