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
.ICollectionService
;
14 import eu
.etaxonomy
.cdm
.model
.occurrence
.Collection
;
15 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
16 import eu
.etaxonomy
.taxeditor
.ui
.section
.occurrence
.CollectionWizardPage
;
19 * <p>NewCollectionWizard class.</p>
22 * @created Oct 13, 2010
25 public class NewCollectionWizard
extends AbstractNewEntityWizard
<Collection
> {
29 public void addPages() {
30 addPage(new CollectionWizardPage(formFactory
, getConversationHolder(), getEntity()));
34 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#saveEntity()
38 protected void saveEntity() {
39 CdmStore
.getService(ICollectionService
.class).saveOrUpdate(getEntity());
43 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
47 protected Collection
createNewEntity() {
48 return Collection
.NewInstance();