hirondelle.fish.all.password
Class ChangePasswordAction
Object
ActionImpl
ActionTemplateShowAndApply
hirondelle.fish.all.password.ChangePasswordAction
- All Implemented Interfaces:
- Action
public final class ChangePasswordAction
- extends ActionTemplateShowAndApply
Change the password.
View :
SQL Statements :
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 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 |
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
ChangePasswordAction
public ChangePasswordAction(RequestParser aRequestParser)
- Constructor.
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
Copyright Hirondelle Systems - Generated 2013Oct19.12.26