HiRISE

HiRISE.HiWish
Class ChangePasswordForm

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

public class ChangePasswordForm
extends User

Takes input from the password change form. The token is retained as a property, which allows forwarding.

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
ChangePasswordForm()
           
 
Method Summary
 String getToken()
          Get the token
 void setToken(String token)
          Set the value of token
 org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, javax.servlet.http.HttpServletRequest req)
          Note this does not validate everything.
 
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

ChangePasswordForm

public ChangePasswordForm()
Method Detail

setToken

public void setToken(String token)
Set the value of token

Parameters:
token - The token

getToken

public String getToken()
Get the token

Returns:
token

validate

public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping,
                                                      javax.servlet.http.HttpServletRequest req)
Description copied from class: User
Note this does not validate everything. Subclasses should override and provide validation for the specific fields that they need.

Overrides:
validate in class User
Parameters:
mapping - 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