net.bryansaunders.jee6divelog.bean
Class RegistrationBean

java.lang.Object
  extended by net.bryansaunders.jee6divelog.bean.RegistrationBean

@Named(value="regBean")
@RequestScoped
@FieldMatch.List(value=@FieldMatch(first="password",second="confirmationPassword",message="{regBean.fieldMatch.password}"))
public class RegistrationBean
extends java.lang.Object

Backing Bean for Registration Page. Name: regBean, Scope: Request

Author:
Bryan Saunders

Field Summary
static java.lang.String FAILURE
          Failure String.
static java.lang.String SUCCESS
          Success String.
 
Constructor Summary
RegistrationBean()
          Default Constructor.
 
Method Summary
protected  UserAccount createUser()
          Creates a User Object from this RegistrationBean.
 java.lang.String getCity()
          Gets the City.
 java.lang.String getConfirmationPassword()
          Gets the Confirmation Password.
 java.lang.String getCountry()
          Gets the Country.
 java.lang.String getEmail()
          Gets the Email.
 java.lang.String getFirstName()
          Gets the First Name.
 java.lang.String getLastName()
          Gets the Last Name.
 java.lang.String getPassword()
          Gets the Password.
 java.lang.String getState()
          Gets the State.
 void setCity(java.lang.String newCity)
          Sets the City.
 void setConfirmationPassword(java.lang.String newConfirmationPassword)
          Sets the Password.
 void setCountry(java.lang.String newCountry)
          Sets the Country.
 void setEmail(java.lang.String newEmail)
          Sets the Email.
 void setFirstName(java.lang.String newFirstName)
          Sets the First Name.
 void setLastName(java.lang.String newLastName)
          Sets the Last Name.
 void setPassword(java.lang.String newPassword)
          Sets the Password.
 void setState(java.lang.String newState)
          Sets the State.
 void setUserService(UserAccountService newUserService)
          Set the userService.
 java.lang.String submitRegistration()
          Submits the Registration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUCCESS

public static final java.lang.String SUCCESS
Success String.

See Also:
Constant Field Values

FAILURE

public static final java.lang.String FAILURE
Failure String.

See Also:
Constant Field Values
Constructor Detail

RegistrationBean

public RegistrationBean()
Default Constructor.

Method Detail

submitRegistration

public java.lang.String submitRegistration()
Submits the Registration.

Returns:
Registration Status

createUser

protected UserAccount createUser()
Creates a User Object from this RegistrationBean.

Returns:
new user object

getFirstName

public java.lang.String getFirstName()
Gets the First Name.

Returns:
the firstName

setFirstName

public void setFirstName(java.lang.String newFirstName)
Sets the First Name.

Parameters:
newFirstName - the firstName to set

getLastName

public java.lang.String getLastName()
Gets the Last Name.

Returns:
the lastName

setLastName

public void setLastName(java.lang.String newLastName)
Sets the Last Name.

Parameters:
newLastName - the lastName to set

getCountry

public java.lang.String getCountry()
Gets the Country.

Returns:
the country

setCountry

public void setCountry(java.lang.String newCountry)
Sets the Country.

Parameters:
newCountry - the country to set

getCity

public java.lang.String getCity()
Gets the City.

Returns:
the city

setCity

public void setCity(java.lang.String newCity)
Sets the City.

Parameters:
newCity - the city to set

getState

public java.lang.String getState()
Gets the State.

Returns:
the state

setState

public void setState(java.lang.String newState)
Sets the State.

Parameters:
newState - the state to set

getEmail

public java.lang.String getEmail()
Gets the Email.

Returns:
the email

setEmail

public void setEmail(java.lang.String newEmail)
Sets the Email.

Parameters:
newEmail - the email to set

getPassword

public java.lang.String getPassword()
Gets the Password.

Returns:
the password

setPassword

public void setPassword(java.lang.String newPassword)
Sets the Password.

Parameters:
newPassword - the password to set

getConfirmationPassword

public java.lang.String getConfirmationPassword()
Gets the Confirmation Password.

Returns:
the confirmationPassword

setConfirmationPassword

public void setConfirmationPassword(java.lang.String newConfirmationPassword)
Sets the Password.

Parameters:
newConfirmationPassword - the confirmationPassword to set

setUserService

public void setUserService(UserAccountService newUserService)
Set the userService.

Parameters:
newUserService - the userService to set


Copyright © 2012 Bryan Saunders. All Rights Reserved.