Class CreateAccountForm

  • All Implemented Interfaces:
    java.io.Serializable

    public class CreateAccountForm
    extends org.apache.struts.action.ActionForm
    Form bean to represent the inputs to create a new user account
    Author:
    Xavier Watkins
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected boolean mailinglist  
      protected java.lang.String password  
      protected java.lang.String password2  
      protected java.lang.String username  
      • Fields inherited from class org.apache.struts.action.ActionForm

        multipartRequestHandler, servlet
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getMailinglist()  
      java.lang.String getPassword()  
      java.lang.String getPassword2()  
      java.lang.String getUsername()  
      void reset​(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest request)
      void setMailinglist​(boolean mailinglist)  
      void setPassword​(java.lang.String password)  
      void setPassword2​(java.lang.String password2)  
      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 org.apache.struts.action.ActionForm

        getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • username

        protected java.lang.String username
      • password

        protected java.lang.String password
      • password2

        protected java.lang.String password2
      • mailinglist

        protected boolean mailinglist
    • Constructor Detail

      • CreateAccountForm

        public CreateAccountForm()
    • Method Detail

      • getMailinglist

        public boolean getMailinglist()
        Returns:
        the mailinglist
      • setMailinglist

        public void setMailinglist​(boolean mailinglist)
        Parameters:
        mailinglist - the mailinglist to set
      • getPassword

        public java.lang.String getPassword()
        Returns:
        password
      • setPassword

        public void setPassword​(java.lang.String password)
        Parameters:
        password - The password
      • getUsername

        public java.lang.String getUsername()
        Returns:
        username
      • setUsername

        public void setUsername​(java.lang.String username)
        Parameters:
        username - The username/email set to be lowercase.
      • getPassword2

        public java.lang.String getPassword2()
        Returns:
        password2
      • setPassword2

        public void setPassword2​(java.lang.String password2)
        Parameters:
        password2 - Password verification
      • validate

        public org.apache.struts.action.ActionErrors validate​(org.apache.struts.action.ActionMapping mapping,
                                                              javax.servlet.http.HttpServletRequest request)
        Overrides:
        validate in class org.apache.struts.action.ActionForm
      • reset

        public void reset​(org.apache.struts.action.ActionMapping mapping,
                          javax.servlet.http.HttpServletRequest request)
        Overrides:
        reset in class org.apache.struts.action.ActionForm