1 |
93682936
|
Katja Luther
|
/**
|
2 |
|
|
* Copyright (C) 2018 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.taxeditor.newWizard;
|
10 |
|
|
|
11 |
|
|
import eu.etaxonomy.cdm.api.service.IReferenceService;
|
12 |
|
|
import eu.etaxonomy.cdm.model.common.Marker;
|
13 |
|
|
import eu.etaxonomy.cdm.model.common.MarkerType;
|
14 |
|
|
import eu.etaxonomy.taxeditor.store.CdmStore;
|
15 |
|
|
|
16 |
|
|
/**
|
17 |
|
|
* @author k.luther
|
18 |
|
|
* @since 28.09.2018
|
19 |
|
|
*
|
20 |
|
|
*/
|
21 |
|
|
public class NewCommonNameReferenceWizard extends NewReferenceWizard {
|
22 |
|
|
|
23 |
|
|
|
24 |
|
|
@Override
|
25 |
|
|
protected void saveEntity() {
|
26 |
|
|
getEntity().addMarker(Marker.NewInstance(MarkerType.COMMON_NAME_REFERENCE(), true));
|
27 |
|
|
CdmStore.getService(IReferenceService.class).save(getEntity());
|
28 |
|
|
}
|
29 |
|
|
}
|