|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.molgenis.importer.controller.DataSetDeleterController
@Controller @RequestMapping(value="/plugin/datasetdeleter") public class DataSetDeleterController
| Field Summary | |
|---|---|
static String |
URI
|
| Constructor Summary | |
|---|---|
DataSetDeleterController()
|
|
| Method Summary | |
|---|---|
protected int |
countReferringProtocols(Characteristic characteristic,
List<Protocol> allProtocols)
Count the number of times a protocol of feature is referred to from a(n other) protocol |
String |
delete(String datasetIdentifier,
boolean deletemetadata)
|
String |
delete(String datasetIdentifier,
org.springframework.web.context.request.WebRequest webRequest)
|
protected void |
deleteCategories(List<Category> categories)
|
protected void |
deleteData(DataSet dataset)
Deletes the data from a given dataSet |
protected void |
deleteFeatures(List<ObservableFeature> features,
List<Protocol> allProtocols)
Deletes all features which do not have multiple Protocols referencing them |
protected void |
deleteObservedValues(ObservationSet observationSet)
Deletes all ObservedValues from a given observationSet |
protected List<Protocol> |
deleteProtocol(Protocol protocol,
List<Protocol> allProtocols)
Deletes all subprotocols which do not have multiple Protocols referencing them |
String |
handleNotAuthenticated()
|
String |
init(org.springframework.ui.Model model)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String URI
| Constructor Detail |
|---|
public DataSetDeleterController()
| Method Detail |
|---|
@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,
org.springframework.web.context.request.WebRequest webRequest)
throws HandleRequestDelegationException,
Exception
HandleRequestDelegationException
Exception
public String delete(String datasetIdentifier,
boolean deletemetadata)
throws DatabaseException,
IOException
DatabaseException
IOException
protected void deleteData(DataSet dataset)
throws DatabaseException
the - DataSet from which the data should be deleted
DatabaseException
protected void deleteObservedValues(ObservationSet observationSet)
throws DatabaseException
the - observationSet from which the values should be deleted
DatabaseException
protected List<Protocol> deleteProtocol(Protocol protocol,
List<Protocol> allProtocols)
throws DatabaseException
the - protocols that should be deleted
DatabaseException
protected void deleteFeatures(List<ObservableFeature> features,
List<Protocol> allProtocols)
throws DatabaseException
the - features that should be deleted
DatabaseException
protected void deleteCategories(List<Category> categories)
throws DatabaseException
DatabaseException
protected int countReferringProtocols(Characteristic characteristic,
List<Protocol> allProtocols)
the - feature of protocol that is referred to
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class) public String handleNotAuthenticated()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||