com.sri.emo.controller
Class EmoRegistration

java.lang.Object
  extended by org.apache.struts.action.Action
      extended by com.jcorporate.expresso.core.controller.Controller
          extended by com.jcorporate.expresso.core.controller.DBController
              extended by com.jcorporate.expresso.services.controller.Registration
                  extended by com.jcorporate.expresso.services.controller.SimpleRegistration
                      extended by com.sri.emo.controller.EmoRegistration
All Implemented Interfaces:
Serializable

public class EmoRegistration
extends com.jcorporate.expresso.services.controller.SimpleRegistration

This is the implementation of Registration.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jcorporate.expresso.core.controller.DBController
CACHE_NAME
 
Fields inherited from class com.jcorporate.expresso.core.controller.Controller
CONTROLLER_PARAM_KEY, CTL_SUCC_CTL, CTL_SUCC_STATE, CTL_SUCC_TRAN, mLog, NEWSTATE_EXCEPTION_KEY, ORIGINAL_URL_KEY, REQUEST_KEY, RESPONSE_KEY, RETURN_TO_SENDER_TRAN, STATE_ERR_CTL, STATE_ERR_STATE, STATE_ERR_TRAN, STATE_PARAM_KEY, STATE_SUCC_CTL, STATE_SUCC_STATE, STATE_SUCC_TRAN
 
Fields inherited from class org.apache.struts.action.Action
defaultLocale, servlet
 
Constructor Summary
EmoRegistration()
          constructor.
 
Method Summary
protected  ExpressoResponse processPostRegistration(ExpressoRequest request, ExpressoResponse response, User user, RegistrationDomain rd, String loginControllerName)
          Processes post Registration If the user is done.
protected  void setupEmailValidation(ExpressoRequest request, ExpressoResponse response, User user, RegistrationDomain rd, String loginControllerName)
          Creates the validation entry for validating email.
 boolean stateAllowed(String newState, ExpressoRequest myRequest)
          For database controllers, we check if the new state is allowed against the database objects for that purpose
 
Methods inherited from class com.jcorporate.expresso.services.controller.SimpleRegistration
buildForm, buildLoginBlock, getTitle, isShowable, processLoginInformation, runEmailValidateState, runProcessAddRecordState, runProcessApprovalState, runProcessDeleteRecordState, runProcessListRecordsState, runProcessRevalidateState, runProcessSelfRegisterState, runProcessUpdateRecordState, runPromptAddRecordState, runPromptApprovalState, runPromptDeleteRecordState, runPromptSelfRegisterState, runPromptUpdateRecordState, runShowDBMenuState
 
Methods inherited from class com.jcorporate.expresso.services.controller.Registration
checkRegComplete, delayLogin, displayValue, getDB, getDefaultValue, getLoginController, getRegDomain, getRegUser, getRequiredDBObjects, isRegistrationObjectNeeded, loadDBObject, nextToAdd
 
Methods inherited from class com.jcorporate.expresso.core.controller.DBController
getString, isAllowed
 
Methods inherited from class com.jcorporate.expresso.core.controller.Controller
addFinalState, addPromptTransitions, addRegDomainParamtoSession, addRequestedURLtoSession, addState, addStatePairing, endTimer, execute, findControllerForm, generateToken, getActionForward, getControllerChainingTransition, getControllerSecurityTransition, getFinalState, getInitialState, getLogger, getParamValues, getRequestURL, getSchema, getSchemaHierarchy, getSchemaInstance, getSchemaStack, getState, getStates, getString, getString, handleException, instantiate, isFinalState, isHandleState, isPromptState, isTokenValid, loadStateForm, newExpressoState, newState, nextHandleState, nextPromptState, populateStateForm, postPerform, postPerform, prePerform, prePerform, previousPromptState, processRequestTransitions, processTransitions, redirectRequest, redirectRequest, remapFromExtension, resetToken, saveToken, setControllerChainingTransition, setControllerSecurityTransition, setCurrentState, setInitialState, setSchema, setSchema, setupDefaultValues, setupReturnToSender, setupSubclassLog, transition, transition, transition, unloadStateForm
 
Methods inherited from class org.apache.struts.action.Action
addErrors, addMessages, execute, generateToken, getDataSource, getDataSource, getErrors, getLocale, getMessages, getResources, getResources, getServlet, isCancelled, isTokenValid, isTokenValid, resetToken, saveErrors, saveErrors, saveMessages, saveMessages, saveToken, setLocale, setServlet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmoRegistration

public EmoRegistration()
constructor.

Method Detail

setupEmailValidation

protected void setupEmailValidation(ExpressoRequest request,
                                    ExpressoResponse response,
                                    User user,
                                    RegistrationDomain rd,
                                    String loginControllerName)
                             throws DBException,
                                    ControllerException
Creates the validation entry for validating email.

Overrides:
setupEmailValidation in class com.jcorporate.expresso.services.controller.Registration
Parameters:
request - The ControllerRequest object
response - The ControllerResponse object
user - the user that is registering
rd - The registration domain that the user is signing up for
loginControllerName - the name of the login controller used
Throws:
DBException - upon data access error
ControllerException - for other errors

stateAllowed

public boolean stateAllowed(String newState,
                            ExpressoRequest myRequest)
                     throws ControllerException
For database controllers, we check if the new state is allowed against the database objects for that purpose

Overrides:
stateAllowed in class DBController
Parameters:
newState - The name of the new state that is being requested; controller class is assumed to be 'this'
myRequest - the ControllerRequest object
Returns:
True if the state is permitted for this user, else false
Throws:
ControllerException - if another undefined error takes place while checking security.

processPostRegistration

protected ExpressoResponse processPostRegistration(ExpressoRequest request,
                                                   ExpressoResponse response,
                                                   User user,
                                                   RegistrationDomain rd,
                                                   String loginControllerName)
                                            throws DBException,
                                                   ControllerException,
                                                   NonHandleableException
Processes post Registration If the user is done.

Overrides:
processPostRegistration in class com.jcorporate.expresso.services.controller.SimpleRegistration
Parameters:
request - the ControllerRequest Object
response - the ControllerResponse object
user - An instantiated user object representing the current User registering
rd - The RegistrationDomain that this user is registering for
loginControllerName - The name of the login controller used for referencing back to this class
Returns:
A completed ControllerResponse object
Throws:
NonHandleableException - upon fatal error
DBException
ControllerException


Copyright © 2004-2006 Codeguild, Inc.. All Rights Reserved.