@Controller public class JobController extends Object
| Constructor and Description |
|---|
JobController(JobService jobService) |
| Modifier and Type | Method and Description |
|---|---|
String |
details(org.springframework.ui.ModelMap model,
String jobName,
org.springframework.validation.Errors errors,
int startJobInstance,
int pageSize) |
String |
getJobName(javax.servlet.http.HttpServletRequest request) |
void |
jobs(org.springframework.ui.ModelMap model,
int startJob,
int pageSize) |
String |
launch(org.springframework.ui.ModelMap model,
String jobName,
LaunchRequest launchRequest,
org.springframework.validation.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(javax.servlet.http.HttpServletRequest request)
@RequestMapping(value="/jobs/{jobName}",
method=POST)
public String launch(org.springframework.ui.ModelMap model,
@ModelAttribute(value="jobName")
String jobName,
@ModelAttribute(value="launchRequest")
LaunchRequest launchRequest,
org.springframework.validation.Errors errors,
@RequestParam(defaultValue="execution")
String origin)
@RequestMapping(value="/jobs/{jobName}",
method=GET)
public String details(org.springframework.ui.ModelMap model,
@ModelAttribute(value="jobName")
String jobName,
org.springframework.validation.Errors errors,
@RequestParam(defaultValue="0")
int startJobInstance,
@RequestParam(defaultValue="20")
int pageSize)
@RequestMapping(value="/jobs",
method=GET)
public void jobs(org.springframework.ui.ModelMap model,
@RequestParam(defaultValue="0")
int startJob,
@RequestParam(defaultValue="20")
int pageSize)
Copyright © 2015. All rights reserved.