Predictions 4.10.0.0

hirondelle.predict.pub.resetpassword
Class ResetPasswordAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.predict.pub.resetpassword.ResetPasswordAction
All Implemented Interfaces:
Action

public final class ResetPasswordAction
extends ActionTemplateShowAndApply

Reset the user's password to a new value.

View : SQL Statements :

Field Summary
static RequestParameter CAPTCHA_CHALLENGE
           
static RequestParameter CAPTCHA_RESPONSE
           
static RequestParameter EMAIL
           
static RequestParameter NONCE
           
static RequestParameter PASSWORD
           
static RequestParameter PASSWORD_CONFIRM
           
static SqlId RESET_LOST_PASSWORD
           
 
Fields inherited from class ActionTemplateShowAndApply
SUPPORTED_OPERATION
 
Fields inherited from class ActionImpl
DATA, ERRORS, ITEM_FOR_EDIT, ITEMS_FOR_LISTING, MESSAGES, USER_ID
 
Constructor Summary
ResetPasswordAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void apply()
          Reset the user's password.
protected  void show()
          Show the empty form, with no prepopulation.
protected  void validateUserInput()
          Check user input can build a ResetPassword object.
 
Methods inherited from class ActionTemplateShowAndApply
execute
 
Methods inherited from class ActionImpl
addError, addError, addError, addMessage, addMessage, addToRequest, addToSession, copyFromSessionToRequest, createSessionAndCsrfToken, endSession, getErrors, getExistingSession, getFromSession, getIdParam, getIdParams, getLocale, getLoggedInUserName, getMessages, getOperation, getOrderBy, getParam, getParamUnsafe, getRequestParser, getResponsePage, getTimeZone, getUserId, hasErrors, removeFromSession, setResponsePage
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESET_LOST_PASSWORD

public static final SqlId RESET_LOST_PASSWORD

EMAIL

public static final RequestParameter EMAIL

NONCE

public static final RequestParameter NONCE

PASSWORD

public static final RequestParameter PASSWORD

PASSWORD_CONFIRM

public static final RequestParameter PASSWORD_CONFIRM

CAPTCHA_CHALLENGE

public static final RequestParameter CAPTCHA_CHALLENGE

CAPTCHA_RESPONSE

public static final RequestParameter CAPTCHA_RESPONSE
Constructor Detail

ResetPasswordAction

public ResetPasswordAction(RequestParser aRequestParser)
Constructor.

Method Detail

show

protected void show()
             throws DAOException
Show the empty form, with no prepopulation.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
DAOException

validateUserInput

protected void validateUserInput()
Check user input can build a ResetPassword object.

Specified by:
validateUserInput in class ActionTemplateShowAndApply

apply

protected void apply()
              throws AppException
Reset the user's password.

This operation succeeds only if the nonce is present, it matches the nonce value attached to the user account, and is no more than 15 minutes old.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
AppException

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27