3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
11 package eu
.etaxonomy
.taxeditor
.newWizard
;
13 import eu
.etaxonomy
.cdm
.api
.service
.IOccurrenceService
;
14 import eu
.etaxonomy
.cdm
.model
.occurrence
.FieldUnit
;
15 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
18 * <p>NewFieldUnitWizard class.</p>
21 * @created Jun 17, 2010
24 public class NewFieldUnitWizard
extends AbstractNewEntityWizard
<FieldUnit
> {
27 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
31 protected FieldUnit
createNewEntity() {
36 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
40 protected void saveEntity() {
41 if(CdmStore
.getCurrentSessionManager().isRemoting()) {
42 CdmStore
.getService(IOccurrenceService
.class).merge(getEntity(), true);
44 CdmStore
.getService(IOccurrenceService
.class).save(getEntity());
49 protected String
getEntityName() {