@Controller @RequestMapping(value="/plugin/idcardindexer") public class IdCardIndexerController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static String |
ID |
static String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
IdCardIndexerController(IdCardIndexerService idCardIndexerService) |
| Modifier and Type | Method and Description |
|---|---|
org.molgenis.data.idcard.indexer.IdCardIndexerController.IndexRebuildStatus |
getIndexRebuildStatus(String triggerGroup,
String triggerName) |
ErrorMessageResponse |
handleThrowable(Throwable t) |
String |
init(org.springframework.ui.Model model) |
org.molgenis.data.idcard.indexer.IdCardIndexerController.IndexRebuildStatus |
scheduleIndexRebuild(org.springframework.ui.Model model) |
getId, getPluginSettings, getUripublic static final String ID
public static final String URI
@Autowired public IdCardIndexerController(IdCardIndexerService idCardIndexerService)
@RequestMapping(method=GET) @PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_IDCARDINDEXER\')") public String init(org.springframework.ui.Model model) throws Exception
Exception@RequestMapping(method=POST,
value="/reindex")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_WRITE_IDCARDINDEXER\')")
@ResponseBody
public org.molgenis.data.idcard.indexer.IdCardIndexerController.IndexRebuildStatus scheduleIndexRebuild(org.springframework.ui.Model model)
throws Exception
Exception@RequestMapping(method=GET,
value="/status/{triggerGroup}/{triggerName}")
@PreAuthorize(value="hasAnyRole(\'ROLE_SU, ROLE_ENTITY_READ_IDCARDINDEXER\')")
@ResponseBody
public org.molgenis.data.idcard.indexer.IdCardIndexerController.IndexRebuildStatus getIndexRebuildStatus(@PathVariable
String triggerGroup,
@PathVariable
String triggerName)
throws Exception
Exception@ExceptionHandler(value=java.lang.Throwable.class) @ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) public ErrorMessageResponse handleThrowable(Throwable t)
Copyright © 2016. All Rights Reserved.