|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.struts.action.Action com.jcorporate.expresso.core.controller.Controller com.jcorporate.expresso.core.controller.DBController com.jcorporate.expresso.services.controller.Registration com.jcorporate.expresso.services.controller.SimpleRegistration com.sri.emo.controller.EmoRegistration
public class EmoRegistration
This is the implementation of Registration.
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 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 |
---|
public EmoRegistration()
Method Detail |
---|
protected void setupEmailValidation(ExpressoRequest request, ExpressoResponse response, User user, RegistrationDomain rd, String loginControllerName) throws DBException, ControllerException
setupEmailValidation
in class com.jcorporate.expresso.services.controller.Registration
request
- The ControllerRequest objectresponse
- The ControllerResponse objectuser
- the user that is registeringrd
- The registration domain that the user is signing up forloginControllerName
- the name of the login controller used
DBException
- upon data access error
ControllerException
- for other errorspublic boolean stateAllowed(String newState, ExpressoRequest myRequest) throws ControllerException
stateAllowed
in class DBController
newState
- The name of the new state that is being requested; controller class is assumed to be 'this'myRequest
- the ControllerRequest
object
ControllerException
- if another undefined error takes place while
checking security.protected ExpressoResponse processPostRegistration(ExpressoRequest request, ExpressoResponse response, User user, RegistrationDomain rd, String loginControllerName) throws DBException, ControllerException, NonHandleableException
processPostRegistration
in class com.jcorporate.expresso.services.controller.SimpleRegistration
request
- the ControllerRequest Objectresponse
- the ControllerResponse objectuser
- An instantiated user object representing the current User
registeringrd
- The RegistrationDomain that this user is registering forloginControllerName
- The name of the login controller used for
referencing back to this class
NonHandleableException
- upon fatal error
DBException
ControllerException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |