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
.IAgentService
;
13 import eu
.etaxonomy
.cdm
.model
.agent
.Team
;
14 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
15 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.TeamWizardPage
;
18 * <p>NewTeamWizard class.</p>
21 * @created Jun 1, 2010
24 public class NewTeamWizard
extends AbstractNewEntityWizard
<Team
> {
26 private boolean isNomenclaturalTeam
= false;
28 public NewTeamWizard() {}
30 public NewTeamWizard(boolean b
) {
31 setNomenclaturalTeam(b
);
36 public void addPages() {
37 addPage(new TeamWizardPage(formFactory
, getConversationHolder(), getEntity(), isNomenclaturalTeam
));
41 * @see eu.etaxonomy.taxeditor.editor.newWizard.AbstractNewEntityWizard#createNewEntity()
45 protected Team
createNewEntity() {
46 return Team
.NewInstance();
51 protected void saveEntity() {
52 CdmStore
.getService(IAgentService
.class).merge(getEntity(), true);
57 protected String
getEntityName() {
62 * @return the isNomenclaturalTeam
64 public boolean isNomenclaturalTeam() {
65 return isNomenclaturalTeam
;
69 * @param isNomenclaturalTeam the isNomenclaturalTeam to set
71 public void setNomenclaturalTeam(boolean isNomenclaturalTeam
) {
72 this.isNomenclaturalTeam
= isNomenclaturalTeam
;