2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.newWizard
;
12 import eu
.etaxonomy
.cdm
.api
.service
.ICollectionService
;
13 import eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
;
14 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
15 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.CollectionWizardPage
;
18 * <p>NewCollectionWizard class.</p>
21 * @created Oct 13, 2010
24 public class NewCollectionWizard
extends AbstractNewEntityWizard
<Collection
> {
28 public void addPages() {
29 addPage(new CollectionWizardPage(formFactory
, getEntity()));
33 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
37 protected void saveEntity() {
38 CdmStore
.getService(ICollectionService
.class).merge(getEntity(), true);
43 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
47 protected Collection
createNewEntity() {
48 return Collection
.NewInstance();
52 protected String
getEntityName() {