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
.Person
;
14 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
15 import eu
.etaxonomy
.taxeditor
.ui
.section
.agent
.PersonWizardPage
;
18 * <p>NewPersonWizard class.</p>
21 * @created Jun 1, 2010
24 public class NewPersonWizard
extends AbstractNewEntityWizard
<Person
> {
28 public void addPages() {
29 addPage(new PersonWizardPage(formFactory
, getConversationHolder(), getEntity()));
34 protected Person
createNewEntity() {
35 return Person
.NewTitledInstance("");
40 protected void saveEntity() {
41 CdmStore
.getService(IAgentService
.class).merge(getEntity(), true);
45 protected String
getEntityName() {