hirondelle.predict.pub.register
Class RegisterAction
Object
ActionImpl
ActionTemplateShowAndApply
hirondelle.predict.pub.register.RegisterAction
- All Implemented Interfaces:
- Action
public final class RegisterAction
- extends ActionTemplateShowAndApply
Allow the user to create an account on the site.
A user can only log in after successfully creating an account.
View :
SQL Statements :
Method Summary |
protected void |
apply()
Add a new user to the database. |
protected void |
show()
Show the empty form, with no prepopulation. |
protected void |
validateUserInput()
Check user input can build a Register object. |
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 |
ADD_NEW_USER
public static final SqlId ADD_NEW_USER
ADD_NEW_USER_ROLE
public static final SqlId ADD_NEW_USER_ROLE
LOGINNAME
public static final RequestParameter LOGINNAME
SCREENNAME
public static final RequestParameter SCREENNAME
PASSWORD
public static final RequestParameter PASSWORD
PASSWORDCONFIRM
public static final RequestParameter PASSWORDCONFIRM
EMAIL
public static final RequestParameter EMAIL
CAPTCHA_CHALLENGE
public static final RequestParameter CAPTCHA_CHALLENGE
CAPTCHA_RESPONSE
public static final RequestParameter CAPTCHA_RESPONSE
RegisterAction
public RegisterAction(RequestParser aRequestParser)
- Constructor.
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
Register
object.
- Specified by:
validateUserInput
in class ActionTemplateShowAndApply
apply
protected void apply()
throws AppException
- Add a new user to the database.
If the user name or email address is already taken, then the operation fails,
and the user is asked to try a different user name.
- Specified by:
apply
in class ActionTemplateShowAndApply
- Throws:
AppException
Copyright Hirondelle Systems - Generated 2013Oct19.12.27