org.molgenis.omx.datasetdeleter
Class DataSetDeleterController
java.lang.Object
org.molgenis.framework.ui.MolgenisPlugin
org.molgenis.omx.datasetdeleter.DataSetDeleterController
@Controller
@RequestMapping(value="/plugin/datasetdeleter")
public class DataSetDeleterController
- extends MolgenisPlugin
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
URI
public static final String URI
- See Also:
- Constant Field Values
DataSetDeleterController
public DataSetDeleterController()
init
@RequestMapping(method=GET)
public String init(org.springframework.ui.Model model)
throws Exception
- Throws:
Exception
delete
@RequestMapping(value="/delete",
method=POST)
@ResponseBody
public String delete(@RequestParam(value="dataset")
String datasetIdentifier,
org.springframework.web.context.request.WebRequest webRequest)
throws HandleRequestDelegationException,
Exception
- Throws:
HandleRequestDelegationException
Exception
delete
public String delete(String datasetIdentifier,
boolean deletemetadata)
throws DatabaseException,
IOException
- Throws:
DatabaseException
IOException
deleteData
protected void deleteData(DataSet dataset)
throws DatabaseException
- Deletes the data from a given dataSet
- Parameters:
the - DataSet from which the data should be deleted
- Throws:
DatabaseException
deleteObservedValues
protected void deleteObservedValues(ObservationSet observationSet)
throws DatabaseException
- Deletes all ObservedValues from a given observationSet
- Parameters:
the - observationSet from which the values should be deleted
- Throws:
DatabaseException
deleteProtocol
protected List<Protocol> deleteProtocol(Protocol protocol,
List<Protocol> allProtocols)
throws DatabaseException
- Deletes all subprotocols which do not have multiple Protocols referencing them
- Parameters:
the - protocols that should be deleted
- Throws:
DatabaseException
deleteFeatures
protected void deleteFeatures(List<ObservableFeature> features,
List<Protocol> allProtocols)
throws DatabaseException
- Deletes all features which do not have multiple Protocols referencing them
- Parameters:
the - features that should be deleted
- Throws:
DatabaseException
deleteCategories
protected void deleteCategories(List<Category> categories)
throws DatabaseException
- Throws:
DatabaseException
countReferringProtocols
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
- Parameters:
the - feature of protocol that is referred to
- Returns:
- the number of referring protocols
handleNotAuthenticated
@ExceptionHandler(value=org.molgenis.framework.db.DatabaseAccessException.class)
public String handleNotAuthenticated()
Copyright © 2013. All Rights Reserved.