@Controller public class JobController extends Object
Constructor and Description |
---|
JobController(JobService jobService) |
Modifier and Type | Method and Description |
---|---|
String |
details(ModelMap model,
String jobName,
Errors errors,
int startJobInstance,
int pageSize) |
String |
getJobName(HttpServletRequest request) |
void |
jobs(ModelMap model,
int startJob,
int pageSize) |
String |
launch(ModelMap model,
String jobName,
LaunchRequest launchRequest,
Errors errors,
String origin) |
void |
setExtensions(Collection<String> extensions)
A collection of extensions that may be appended to request urls aimed at
this controller.
|
void |
setTimeZone(TimeZone timeZone) |
@Autowired public JobController(JobService jobService)
public void setExtensions(Collection<String> extensions)
extensions
- the extensions (e.g. [rss, xml, atom])@Autowired(required=false) @Qualifier(value="userTimeZone") public void setTimeZone(TimeZone timeZone)
timeZone
- the timeZone to set@ModelAttribute(value="jobName") public String getJobName(HttpServletRequest request)
@RequestMapping(value="/jobs/{jobName}", method=POST) public String launch(ModelMap model, @ModelAttribute(value="jobName") String jobName, @ModelAttribute(value="launchRequest") LaunchRequest launchRequest, Errors errors, @RequestParam(defaultValue="execution") String origin)
@RequestMapping(value="/jobs/{jobName}", method=GET) public String details(ModelMap model, @ModelAttribute(value="jobName") String jobName, Errors errors, @RequestParam(defaultValue="0") int startJobInstance, @RequestParam(defaultValue="20") int pageSize)
@RequestMapping(value="/jobs", method=GET) public void jobs(ModelMap model, @RequestParam(defaultValue="0") int startJob, @RequestParam(defaultValue="20") int pageSize)
Copyright © 2015. All rights reserved.