@RequestMapping(value = "", method = RequestMethod.GET, produces = "application/json")
	@ResponseStatus(HttpStatus.OK)
	public PagedResources<DetailedJobInfoResource> jobs(Pageable pageable,
			PagedResourcesAssembler<DetailedJobInfo> assembler) {
		Page<Job> deployedJobs = xdJobrepository.findAll(pageable);
		List<DetailedJobInfo> detailedJobs = new ArrayList<DetailedJobInfo>();
		for (Job deployedJob : deployedJobs) {
			DetailedJobInfo detailedJobInfo = getJobInfo(deployedJob.getDefinition().getName(), true);
			if (detailedJobInfo != null) {
				detailedJobs.add(detailedJobInfo);
			}
		}
		return assembler.toResource(
				new PageImpl<DetailedJobInfo>(detailedJobs, pageable, deployedJobs.getTotalElements()),
				jobInfoResourceAssembler);
	}
Get the paged resources of {@link DetailedJobInfoResource}

@param pageable the paging metadata
@param assembler the paged resource assembler of type {@link DetailedJobInfo}
spring-xd-dirt/src/main/java/org/springframework/xd/dirt/rest/BatchJobsController.java