@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) |
String |
handleNotAuthenticated() |
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)
throws DatabaseException
DatabaseException@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class) public String handleNotAuthenticated()
Copyright © 2013. All Rights Reserved.