HiRISE

HiRISE.HiWish
Class RegisterForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by HiRISE.HiWish.User
          extended by HiRISE.HiWish.RegisterForm
All Implemented Interfaces:
Serializable

public class RegisterForm
extends User

Captures the submit values for a new registration form and validates all inputs.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class HiRISE.HiWish.User
User.ConfirmationType
 
Field Summary
 
Fields inherited from class HiRISE.HiWish.User
additionalNames, affiliation, confirmationToken, confirmationType, country, educator, emailAddress, familyName, givenName, gradeLevel, gradeLevelOther, GRADES, HIGHEST_GRADES, highestGradeCompleted, LOGIN_COOKIE_KEY, MAXLEN_ADDITIONAL_NAMES, MAXLEN_AFFILIATION, MAXLEN_COUNTRY, MAXLEN_EMAIL_ADDRESS, MAXLEN_FAMILY_NAME, MAXLEN_GIVEN_NAME, MAXLEN_GRADE_LEVEL_OTHER, MAXLEN_NAME_SUFFIX, MAXLEN_NOTE, MAXLEN_OCCUPATION, MAXLEN_POSTAL_CODE, MAXLEN_USERNAME, MINLEN_PASSWORD, MINLEN_USERNAME, nameSuffix, note, notifyOnGeometry, notifyOnRelease, notifyOnUpdate, occupation, password, postalCode, privileged, publicKey, REGEX_USERNAME, student, username, verifyEmail, verifyPassword
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
RegisterForm()
           
 
Method Summary
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map, javax.servlet.http.HttpServletRequest req)
          Validate input for a new registration.
 
Methods inherited from class HiRISE.HiWish.User
addSTL, getAdditionalNames, getAffiliation, getConfirmationToken, getConfirmationType, getCountry, getEmailAddress, getFamilyName, getGivenName, getGradeLevel, getGradeLevelOther, getGrades, getGroups, getHighestGradeCompleted, getHighestGrades, getID, getNameSuffix, getNote, getNotifyOnGeometry, getNotifyOnRelease, getNotifyOnUpdate, getOccupation, getPassword, getPostalCode, getPublicKey, getUsername, getVerifyEmail, getVerifyPassword, hasRole, hasRoles, isEducator, isEmail, isPrivileged, isStudent, leadsTheme, reset, setAdditionalNames, setAffiliation, setConfirmationToken, setConfirmationType, setConfirmationType, setCountry, setEducator, setEmailAddress, setFamilyName, setGivenName, setGradeLevel, setGradeLevelOther, setGroups, setHighestGradeCompleted, setNameSuffix, setNote, setNotifyOnGeometry, setNotifyOnRelease, setNotifyOnUpdate, setOccupation, setPassword, setPostalCode, setPublicKey, setStudent, setUsername, setVerifyEmail, setVerifyPassword, toString
 
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, wait, wait, wait
 

Constructor Detail

RegisterForm

public RegisterForm()
Method Detail

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping map,
                                                      javax.servlet.http.HttpServletRequest req)
Validate input for a new registration. The action method will do additional validation, this only ensures that the input is acceptable to proceed.

Overrides:
validate in class User
Parameters:
map - Struts mapping
req - Incoming request
Returns:
Any validation errors

HiRISE

Copyright (C) Arizona Board of Regents on behalf of the Planetary Image Research Laboratory, Lunar and Planetary Laboratory at the University of Arizona