net.sourceforge.stripes.examples.bugzooky
Class RegisterActionBean

java.lang.Object
  extended by net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
      extended by net.sourceforge.stripes.examples.bugzooky.RegisterActionBean
All Implemented Interfaces:
net.sourceforge.stripes.action.ActionBean

@Wizard
public class RegisterActionBean
extends BugzookyActionBean

ActionBean that handles the registration of new users.

Author:
Tim Fennell

Constructor Summary
RegisterActionBean()
           
 
Method Summary
 String getConfirmPassword()
          The 2nd/confirmation password entered by the user.
 Person getUser()
          The user being registered.
 net.sourceforge.stripes.action.Resolution gotoStep2()
           
 net.sourceforge.stripes.action.Resolution register()
          Registers a new user, logs them in, and redirects them to the bug list page.
 void setConfirmPassword(String confirmPassword)
          The 2nd/confirmation password entered by the user.
 void setUser(Person user)
          The user being registered.
 void validate(net.sourceforge.stripes.validation.ValidationErrors errors)
          Validates that the two passwords entered match each other, and that the username entered is not already taken in the system.
 
Methods inherited from class net.sourceforge.stripes.examples.bugzooky.BugzookyActionBean
getContext, populateBug, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RegisterActionBean

public RegisterActionBean()
Method Detail

setUser

public void setUser(Person user)
The user being registered.


getUser

public Person getUser()
The user being registered.


setConfirmPassword

public void setConfirmPassword(String confirmPassword)
The 2nd/confirmation password entered by the user.


getConfirmPassword

public String getConfirmPassword()
The 2nd/confirmation password entered by the user.


validate

@ValidationMethod
public void validate(net.sourceforge.stripes.validation.ValidationErrors errors)
Validates that the two passwords entered match each other, and that the username entered is not already taken in the system.


gotoStep2

public net.sourceforge.stripes.action.Resolution gotoStep2()
                                                    throws Exception
Throws:
Exception

register

@DefaultHandler
public net.sourceforge.stripes.action.Resolution register()
Registers a new user, logs them in, and redirects them to the bug list page.



© Copyright 2005, Stripes Development Team.