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