@Controller @RequestMapping(value="/plugin/datasetdeleter") public class DataSetDeleterController extends MolgenisPluginController
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
URI |
PLUGIN_URI_PREFIX| Constructor and Description |
|---|
DataSetDeleterController(DataSetDeleterService dataSetDeleterService,
MolgenisSettings molgenisSettings) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
delete(java.lang.String dataSetIdentifier,
java.lang.Boolean deleteMetaData) |
ErrorMessageResponse |
handleRuntimeException(java.lang.RuntimeException e) |
java.lang.String |
init(org.springframework.ui.Model model) |
getId, getUripublic static final java.lang.String URI
@Autowired public DataSetDeleterController(DataSetDeleterService dataSetDeleterService, MolgenisSettings molgenisSettings)
@RequestMapping(method=GET)
public java.lang.String init(org.springframework.ui.Model model)
throws java.lang.Exception
java.lang.Exception@RequestMapping(value="/delete",
method=POST)
@ResponseBody
public java.lang.String delete(@RequestParam(value="dataset")
java.lang.String dataSetIdentifier,
@RequestParam(value="deletemetadata",required=false)
java.lang.Boolean deleteMetaData)
@ExceptionHandler(value=java.lang.RuntimeException.class) @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ResponseBody public ErrorMessageResponse handleRuntimeException(java.lang.RuntimeException e)
Copyright © 2014. All Rights Reserved.