src/Jaspersoft/Service/PermissionService.php
public function searchRepositoryPermissions($uri, $effectivePermissions = null, $recipientType = null, $recipientId = null, $resolveAll = null)
    {
		$url = $this->service_url . '/permissions' . $uri;
		$url .= '?' . Util::query_suffix(array(
								"effectivePermissions" => $effectivePermissions,
								"recipientType" => $recipientType,
								"recipientId" => $recipientId,
								"resolveAll" => $resolveAll));
		$data = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
        if (empty($data)) return array();
        return self::batchDataToArray($data);
	}
public function searchRepositoryPermissions($uri, $effectivePermissions = null, $recipientType = null, $recipientId = null, $resolveAll = null)
    {
		$url = $this->service_url . '/permissions' . $uri;
		$url .= '?' . Util::query_suffix(array(
								"effectivePermissions" => $effectivePermissions,
								"recipientType" => $recipientType,
								"recipientId" => $recipientId,
								"resolveAll" => $resolveAll));
		$data = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
        if (empty($data)) return array();
        return self::batchDataToArray($data);
	}
public function searchRepositoryPermissions ( $ uri , $ effectivePermissions = null , $ recipientType = null , $ recipientId = null , $ resolveAll = null ) { $ url = $ this -> service_url . '/permissions' . $ uri ; $ url .= '?' . Util :: query_suffix ( array ( "effectivePermissions" => $ effectivePermissions , "recipientType" => $ recipientType , "recipientId" => $ recipientId , "resolveAll" => $ resolveAll ) ) ; $ data = $ this -> service -> prepAndSend ( $ url , array ( 200 , 204 ) , 'GET' , null , true , 'application/json' , 'application/json' ) ; if ( empty ( $ data ) ) return array ( ) ; return self :: batchDataToArray ( $ data ) ; }
Obtain the permissions of a resource on the server

@param string $uri
@param boolean $effectivePermissions Show all permissions affected by URI?
@param string $recipientType Type of permission (e.g: user/role)
@param string $recipientId the id of the recipient (requires recipientType)
@param boolean $resolveAll Resolve for all matched recipients?
@return array A resultant set of RepositoryPermission
Obtain the permissions of a resource on the server