Project

General

Profile

Download (1 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
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.cdm.model.reference.ReferenceType;
15
import eu.etaxonomy.taxeditor.store.CdmStore;
16

    
17
/**
18
 * @author k.luther
19
 * @since 28.09.2018
20
 *
21
 */
22
public class NewCommonNameReferenceWizard extends NewReferenceWizard {
23

    
24

    
25
    /**
26
     * @param type
27
     */
28
    public NewCommonNameReferenceWizard(ReferenceType type) {
29
        super(type);
30
    }
31

    
32
    @Override
33
    protected void saveEntity() {
34
        getEntity().addMarker(Marker.NewInstance(MarkerType.COMMON_NAME_REFERENCE(), true));
35
        CdmStore.getService(IReferenceService.class).save(getEntity());
36
    }
37
}
(9-9/28)