src/Jaspersoft/Service/RoleService.php
public function getRole($roleName, $organization = null)
    {
        $url = self::makeUrl($organization, $roleName);
        $resp = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/json');	
		$data = json_decode($resp);
        return @new Role($data->name, $data->tenantId, $data->externallyDefined);
    }
public function getRole($roleName, $organization = null)
    {
        $url = self::makeUrl($organization, $roleName);
        $resp = $this->service->prepAndSend($url, array(200), 'GET', null, true, 'application/json', 'application/json');	
		$data = json_decode($resp);
        return @new Role($data->name, $data->tenantId, $data->externallyDefined);
    }
public function getRole ( $ roleName , $ organization = null ) { $ url = self :: makeUrl ( $ organization , $ roleName ) ; $ resp = $ this -> service -> prepAndSend ( $ url , array ( 200 ) , 'GET' , null , true , 'application/json' , 'application/json' ) ; $ data = json_decode ( $ resp ) ; return @ new Role ( $ data -> name , $ data -> tenantId , $ data -> externallyDefined ) ; }
Get a Role by its name

@param string $roleName
@param string $organization
@return \Jaspersoft\Dto\Role\Role
@throws \Jaspersoft\Exception\RESTRequestException
Get a Role by its name