@Controller @RequestMapping(value="/plugin/bbmrinltoericmapper") public class BbmriNlToEricMapperController extends MolgenisPluginController implements org.springframework.beans.factory.DisposableBean, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
BbmriNlToEricMapperController(DataService dataService,
org.quartz.Scheduler scheduler,
BbmriNlToEricMapperSettings bbmriNlToEricMapperSettings) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
ErrorMessageResponse |
handleMolgenisDataException(MolgenisDataException e) |
ErrorMessageResponse |
handleRuntimeException(RuntimeException e) |
String |
init(org.springframework.ui.Model model) |
void |
onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) |
void |
scheduleMappingJob() |
void |
scheduleMappingJobNow() |
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
@Autowired public BbmriNlToEricMapperController(DataService dataService, org.quartz.Scheduler scheduler, BbmriNlToEricMapperSettings bbmriNlToEricMapperSettings)
@RequestMapping(method=GET) public String init(org.springframework.ui.Model model) throws Exception
Exception@RequestMapping(value="/scheduleMappingJob",
method=POST)
@ResponseBody
@ResponseStatus(value=OK)
public void scheduleMappingJob()
throws org.quartz.SchedulerException
org.quartz.SchedulerException@RequestMapping(value="/scheduleMappingJobNow",
method=POST)
@ResponseBody
@ResponseStatus(value=OK)
public void scheduleMappingJobNow()
throws org.quartz.SchedulerException
org.quartz.SchedulerExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanException@ExceptionHandler(value=org.molgenis.data.MolgenisDataException.class) @ResponseBody @ResponseStatus(value=BAD_REQUEST) public ErrorMessageResponse handleMolgenisDataException(MolgenisDataException e)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleRuntimeException(RuntimeException e)
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>Copyright © 2015. All Rights Reserved.