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
.editor
.newWizard
;
13 import org
.apache
.log4j
.Logger
;
15 import eu
.etaxonomy
.cdm
.model
.agent
.Person
;
16 import eu
.etaxonomy
.taxeditor
.section
.agent
.PersonWizardPage
;
17 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
20 * <p>NewPersonWizard class.</p>
23 * @created Jun 1, 2010
26 public class NewPersonWizard
extends AbstractNewEntityWizard
<Person
> {
27 private static final Logger logger
= Logger
28 .getLogger(NewPersonWizard
.class);
32 public void addPages() {
33 addPage(new PersonWizardPage(formFactory
, getConversationHolder(), entity
));
38 protected Person
createNewEntity() {
39 return Person
.NewTitledInstance("");
44 protected void saveEntity() {
45 CdmStore
.getAgentService().saveOrUpdate(entity
);