Revision 538800b4
Added by Andreas Kohlbecker almost 7 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/view/taxon/TaxonNameEditorPresenter.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.vaadin.view.taxon; |
10 | 10 |
|
11 |
import eu.etaxonomy.cdm.api.service.DeleteResult; |
|
12 |
import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator; |
|
11 | 13 |
import eu.etaxonomy.cdm.model.name.TaxonNameBase; |
12 | 14 |
import eu.etaxonomy.vaadin.mvp.AbstractCdmEditorPresenter; |
13 | 15 |
|
... | ... | |
20 | 22 |
|
21 | 23 |
private static final long serialVersionUID = -3538980627079389221L; |
22 | 24 |
|
25 |
/** |
|
26 |
* {@inheritDoc} |
|
27 |
*/ |
|
28 |
@Override |
|
29 |
protected DeleteResult executeServiceDeleteOperation(TaxonNameBase bean) { |
|
30 |
NameDeletionConfigurator config = new NameDeletionConfigurator(); |
|
31 |
return getRepo().getNameService().delete(bean.getUuid(), config); |
|
32 |
} |
|
33 |
|
|
23 | 34 |
|
24 | 35 |
} |
Also available in: Unified diff
ref #6169 first implementation of delete operations