1
|
/**
|
2
|
* Copyright (C) 2017 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.cdm.vaadin.view.taxon;
|
10
|
|
11
|
import eu.etaxonomy.cdm.api.service.DeleteResult;
|
12
|
import eu.etaxonomy.cdm.api.service.config.NameDeletionConfigurator;
|
13
|
import eu.etaxonomy.cdm.model.name.TaxonNameBase;
|
14
|
import eu.etaxonomy.vaadin.mvp.AbstractCdmEditorPresenter;
|
15
|
|
16
|
/**
|
17
|
* @author a.kohlbecker
|
18
|
* @since May 22, 2017
|
19
|
*
|
20
|
*/
|
21
|
public class TaxonNameEditorPresenter extends AbstractCdmEditorPresenter<TaxonNameBase, TaxonNamePopupEditorView> {
|
22
|
|
23
|
private static final long serialVersionUID = -3538980627079389221L;
|
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
|
|
34
|
|
35
|
}
|