@RequestMapping(value="",method={RequestMethod.GET}) @ResponseBody public List<JobInstance> list(JobListRequest jobRequest){
  List<JobInstance> jobInstanceList=Collections.emptyList();
  List<JobStatusEnum> statusList=new ArrayList<JobStatusEnum>();
  if (null != jobRequest.getStatus()) {
    for (    int status : jobRequest.getStatus()) {
      statusList.add(JobStatusEnum.getByCode(status));
    }
  }
  JobTimeFilterEnum timeFilter=JobTimeFilterEnum.getByCode(jobRequest.getTimeFilter());
  try {
    jobInstanceList=jobService.listAllJobs(jobRequest.getCubeName(),jobRequest.getProjectName(),statusList,jobRequest.getLimit(),jobRequest.getOffset(),timeFilter);
  }
 catch (  Exception e) {
    logger.error(e.getLocalizedMessage(),e);
    throw new InternalErrorException(e);
  }
  return jobInstanceList;
}

@ RequestMapping ( value = "" , method = { RequestMethod . GET } ) @ ResponseBody public List < JobInstance > list ( JobListRequest jobRequest ) { List < JobInstance > jobInstanceList = Collections . emptyList ( ) ; List < JobStatusEnum > statusList = new ArrayList < JobStatusEnum > ( ) ; if ( null != jobRequest . getStatus ( ) ) { for ( int status : jobRequest . getStatus ( ) ) { statusList . add ( JobStatusEnum . getByCode ( status ) ) ; } } JobTimeFilterEnum timeFilter = JobTimeFilterEnum . getByCode ( jobRequest . getTimeFilter ( ) ) ; try { jobInstanceList = jobService . listAllJobs ( jobRequest . getCubeName ( ) , jobRequest . getProjectName ( ) , statusList , jobRequest . getLimit ( ) , jobRequest . getOffset ( ) , timeFilter ) ; } catch ( Exception e ) { logger . error ( e . getLocalizedMessage ( ) , e ) ; throw new InternalErrorException ( e ) ; } return jobInstanceList ; }
get all cube jobs
