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
.user
.wizard
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.jface
.wizard
.Wizard
;
16 import eu
.etaxonomy
.cdm
.model
.common
.User
;
17 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
18 import eu
.etaxonomy
.taxeditor
.user
.view
.UserManagerView
;
25 public class UserWizard
extends Wizard
{
26 private static final Logger logger
= Logger
.getLogger(UserWizard
.class);
28 private UserWizardPage page
;
29 private UserManagerView view
;
31 public UserWizard(UserManagerView view
){
33 setWindowTitle("User Wizard");
36 public UserWizard(UserManagerView view
, User user
){
42 * @see org.eclipse.jface.wizard.Wizard#addPages()
45 public void addPages() {
48 page
= new UserWizardPage(user
);
55 * @see org.eclipse.jface.wizard.Wizard#performFinish()
58 public boolean performFinish() {
60 CdmStore
.getUserService().saveOrUpdate(page
.getUser());
61 view
.getConversationHolder().commit(true);
63 return view
.postOperation(user
);