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.vaadin.mvp;
|
10
|
|
11
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
12
|
|
13
|
/**
|
14
|
* Provides generic save operations of modified cdm entities.
|
15
|
*
|
16
|
* @author a.kohlbecker
|
17
|
* @since Apr 5, 2017
|
18
|
*
|
19
|
*/
|
20
|
public abstract class AbstractCdmEditorPresenter<CDM extends CdmBase, V extends ApplicationView<?>> extends CdmEditorPresenterBase<CDM, CDM, V> {
|
21
|
|
22
|
private static final long serialVersionUID = -6315824180341694825L;
|
23
|
|
24
|
@Override
|
25
|
protected CDM createDTODecorator(CDM cdmEntitiy) {
|
26
|
return cdmEntitiy;
|
27
|
}
|
28
|
|
29
|
@Override
|
30
|
protected CDM cdmEntity(CDM dto) {
|
31
|
return dto;
|
32
|
}
|
33
|
|
34
|
}
|