Fish & Chips Club 4.10.0.0

hirondelle.fish.all.password
Class ChangePasswordAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by hirondelle.fish.all.password.ChangePasswordAction
All Implemented Interfaces:
Action

public final class ChangePasswordAction
extends ActionTemplateShowAndApply

Change the password.

View : SQL Statements :

Field Summary
static SqlId CHANGE_PASSWORD
           
static RequestParameter CONFIRM_NEW_PASSWORD
           
static RequestParameter NAME
           
static RequestParameter NEW_PASSWORD
           
static RequestParameter OLD_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
ChangePasswordAction(RequestParser aRequestParser)
          Constructor.
 
Method Summary
protected  void apply()
          Apply the change to the database.
protected  void show()
          Show the form for changing the password.
protected  void validateUserInput()
          Validate that both the old and new passwords are of valid form.
 
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

CHANGE_PASSWORD

public static final SqlId CHANGE_PASSWORD

NAME

public static final RequestParameter NAME

OLD_PASSWORD

public static final RequestParameter OLD_PASSWORD

NEW_PASSWORD

public static final RequestParameter NEW_PASSWORD

CONFIRM_NEW_PASSWORD

public static final RequestParameter CONFIRM_NEW_PASSWORD
Constructor Detail

ChangePasswordAction

public ChangePasswordAction(RequestParser aRequestParser)
Constructor.

Method Detail

show

protected void show()
             throws DAOException
Show the form for changing the password.

Specified by:
show in class ActionTemplateShowAndApply
Throws:
DAOException

validateUserInput

protected void validateUserInput()
Validate that both the old and new passwords are of valid form.

Also validates that the user is still logged in (just in case).

Specified by:
validateUserInput in class ActionTemplateShowAndApply

apply

protected void apply()
              throws DAOException
Apply the change to the database.

Specified by:
apply in class ActionTemplateShowAndApply
Throws:
DAOException

Fish & Chips Club 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26