Project

General

Profile

Download (1.16 KB) Statistics
| Branch: | Tag: | Revision:
1
/**
2
* Copyright (C) 2007 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

    
10
package eu.etaxonomy.taxeditor.newWizard;
11

    
12
import eu.etaxonomy.cdm.api.service.IOccurrenceService;
13
import eu.etaxonomy.cdm.model.occurrence.FieldUnit;
14
import eu.etaxonomy.taxeditor.store.CdmStore;
15

    
16
/**
17
 * <p>NewFieldUnitWizard class.</p>
18
 *
19
 * @author n.hoffmann
20
 * @created Jun 17, 2010
21
 * @version 1.0
22
 */
23
public class NewFieldUnitWizard extends AbstractNewEntityWizard<FieldUnit> {
24

    
25
	/* (non-Javadoc)
26
	 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
27
	 */
28
	/** {@inheritDoc} */
29
	@Override
30
	protected FieldUnit createNewEntity() {
31
		return null;
32
	}
33

    
34
	/* (non-Javadoc)
35
	 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
36
	 */
37
	/** {@inheritDoc} */
38
	@Override
39
	protected void saveEntity() {
40
	    CdmStore.getService(IOccurrenceService.class).merge(getEntity(), true);
41
	    
42
	}
43

    
44
	@Override
45
	protected String getEntityName() {
46
		return "Field Unit";
47
	}
48
}
(9-9/23)