@RequestMapping(value = { "/jobs/{jobName}/{jobInstanceId}/executions", "/jobs/{jobName}/{jobInstanceId}" }, method = RequestMethod.GET)
public String listForInstance(Model model, @PathVariable String jobName, @PathVariable long jobInstanceId,
@ModelAttribute("date") Date date, Errors errors) {
JobInstance jobInstance = null;
try {
jobInstance = jobService.getJobInstance(jobInstanceId);
if (!jobInstance.getJobName().equals(jobName)) {
errors.reject("wrong.job.name", new Object[] { jobInstanceId, jobInstance.getJobName(), jobName },
"The JobInstance with id=" + jobInstanceId + " has the wrong name (" + jobInstance.getJobName()
+ " not " + jobName);
}
}
catch (NoSuchJobInstanceException e) {
errors.reject("no.such.job.instance", new Object[] { jobInstanceId }, "There is no such job instance ("