com.softslate.commerce.customer.customer
Class RegisterForm

java.lang.Object
  extended byorg.apache.struts.action.ActionForm
      extended bycom.softslate.commerce.customer.core.BaseForm
          extended bycom.softslate.commerce.customer.customer.AccountForm
              extended bycom.softslate.commerce.customer.customer.RegisterForm
All Implemented Interfaces:
java.io.Serializable

public class RegisterForm
extends AccountForm

Struts form class for submissions to register a new customer account. Used for requests to "/Register.do".

The validate method of this class checks for the existance of the userName and password properties, and checks that the password property matches the confirmPassword property.

It also checks the length of the password against the "minimumPasswordLength" database setting. If the "keepUserNameAndEmailInSync" setting is on, it will verify that the user name is a valid email address and copy the user name to the email1 property.

Author:
David Tobey
See Also:
Serialized Form

Field Summary
private  java.lang.String confirmPassword
           
private  java.lang.String email1
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String password
           
private static long serialVersionUID
           
private  java.lang.String userName
           
 
Fields inherited from class com.softslate.commerce.customer.customer.AccountForm
 
Fields inherited from class com.softslate.commerce.customer.core.BaseForm
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
RegisterForm()
           
 
Method Summary
 java.lang.String getConfirmPassword()
           
 java.lang.String getEmail1()
           
 java.lang.String getPassword()
           
 java.lang.String getUserName()
           
 void setConfirmPassword(java.lang.String confirmPassword)
           
 void setEmail1(java.lang.String email1)
           
 void setPassword(java.lang.String password)
           
 void setUserName(java.lang.String userName)
           
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.softslate.commerce.customer.customer.AccountForm
getAddressesForm, getLoginForm, getRegisterForm, setAddressesForm, setLoginForm, setRegisterForm
 
Methods inherited from class com.softslate.commerce.customer.core.BaseForm
getBusinessObjectFactory, getErrors, getMapping, getMessage, getMessages, getRequest, getSettingsBean, getUser, initializeProperties, setBusinessObjectFactory, setErrors, setMapping, setMessages, setRequest, setSettingsBean, setUser
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

userName

private java.lang.String userName

email1

private java.lang.String email1

password

private java.lang.String password

confirmPassword

private java.lang.String confirmPassword
Constructor Detail

RegisterForm

public RegisterForm()
Method Detail

getUserName

public java.lang.String getUserName()

setUserName

public void setUserName(java.lang.String userName)

getEmail1

public java.lang.String getEmail1()

setEmail1

public void setEmail1(java.lang.String email1)

getPassword

public java.lang.String getPassword()

setPassword

public void setPassword(java.lang.String password)

getConfirmPassword

public java.lang.String getConfirmPassword()

setConfirmPassword

public void setConfirmPassword(java.lang.String confirmPassword)

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest request)


Copyright © SoftSlate, Inc. 2003–2005