src/Jaspersoft/Service/JobService.php
public function searchJobs($reportUnitURI = null, $owner = null, $label = null, $example = null, $startIndex = null,
        $rows = null, $sortType = null, $ascending = null)
    {
        $result = array();
        $url = self::makeUrl(array(
            'reportUnitURI' => $reportUnitURI,
            'owner' => $owner,
            'label' => $label,
            'example' => $example,
            'startIndex' => $startIndex,
            'numberOfRows' => $rows,
            'sortType' => $sortType,
            'isAscending' => $ascending
        ));

        $resp = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
        if (empty($resp))
            return $result;
        $jobs = json_decode($resp);
        foreach($jobs->jobsummary as $job) {
            $result[] = @new JobSummary(
                $job->id,
                $job->label,
                $job->reportUnitURI,
                $job->version,
                $job->owner,
                $job->state->value,
                $job->state->nextFireTime,
                $job->state->previousFireTime
            );
        }
        return $result;
    }
public function searchJobs($reportUnitURI = null, $owner = null, $label = null, $example = null, $startIndex = null,
        $rows = null, $sortType = null, $ascending = null)
    {
        $result = array();
        $url = self::makeUrl(array(
            'reportUnitURI' => $reportUnitURI,
            'owner' => $owner,
            'label' => $label,
            'example' => $example,
            'startIndex' => $startIndex,
            'numberOfRows' => $rows,
            'sortType' => $sortType,
            'isAscending' => $ascending
        ));

        $resp = $this->service->prepAndSend($url, array(200, 204), 'GET', null, true, 'application/json', 'application/json');
        if (empty($resp))
            return $result;
        $jobs = json_decode($resp);
        foreach($jobs->jobsummary as $job) {
            $result[] = @new JobSummary(
                $job->id,
                $job->label,
                $job->reportUnitURI,
                $job->version,
                $job->owner,
                $job->state->value,
                $job->state->nextFireTime,
                $job->state->previousFireTime
            );
        }
        return $result;
    }
public function searchJobs ( $ reportUnitURI = null , $ owner = null , $ label = null , $ example = null , $ startIndex = null , $ rows = null , $ sortType = null , $ ascending = null ) { $ result = array ( ) ; $ url = self :: makeUrl ( array ( 'reportUnitURI' => $ reportUnitURI , 'owner' => $ owner , 'label' => $ label , 'example' => $ example , 'startIndex' => $ startIndex , 'numberOfRows' => $ rows , 'sortType' => $ sortType , 'isAscending' => $ ascending ) ) ; $ resp = $ this -> service -> prepAndSend ( $ url , array ( 200 , 204 ) , 'GET' , null , true , 'application/json' , 'application/json' ) ; if ( empty ( $ resp ) ) return $ result ; $ jobs = json_decode ( $ resp ) ; foreach ( $ jobs -> jobsummary as $ job ) { $ result [ ] = @ new JobSummary ( $ job -> id , $ job -> label , $ job -> reportUnitURI , $ job -> version , $ job -> owner , $ job -> state -> value , $ job -> state -> nextFireTime , $ job -> state -> previousFireTime ) ; } return $ result ; }
Search for scheduled jobs.

@param string $reportUnitURI URI of the report (optional)
@param string $owner Search by user who created job
@param string $label Search by job label title
@param string $example Search by any field of Job description in JSON format (i.e: {"outputFormats" : ["RTF", "PDF" ]} )
@param int $startIndex Start at this number (pagination)
@param int $rows Number of rows in a block (pagination)
@param string $sortType How to sort by column, must be any of the following:
NONE, SORTBY_JOBID, SORTBY_JOBNAME, SORTBY_REPORTURI, SORTBY_REPORTNAME, SORTBY_REPORTFOLDER,
SORTBY_OWNER, SORTBY_STATUS, SORTBY_LASTRUN, SORTBY_NEXTRUN
@param boolean $ascending
@return array
Search for scheduled jobs .