Predictions 4.10.0.0

hirondelle.predict.pub.register
Class RegisterAction

Object
  extended by ActionImpl
      extended by ActionTemplateShowAndApply
          extended by 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 :

Field Summary
static SqlId ADD_NEW_USER
           
static SqlId ADD_NEW_USER_ROLE
           
static RequestParameter CAPTCHA_CHALLENGE
           
static RequestParameter CAPTCHA_RESPONSE
           
static RequestParameter EMAIL
           
static RequestParameter LOGINNAME
           
static RequestParameter PASSWORD
           
static RequestParameter PASSWORDCONFIRM
           
static RequestParameter SCREENNAME
           
 
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
RegisterAction(RequestParser aRequestParser)
          Constructor.
 
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 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

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
Constructor Detail

RegisterAction

public RegisterAction(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 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

Predictions 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.27