|
||||||||||
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.LoginController com.jcorporate.expresso.services.controller.SimpleLoginController com.sri.common.controller.LoginAction
public class LoginAction
Extension of Expresso's SimpleLoginController for EMO customization.
Field Summary | |
---|---|
static String |
DO_CHANGE_PASSWORD
Constant for state do change password. |
static String |
DO_CHANGE_PREFS
Constant for state change preferences. |
static String |
DO_LOGIN
Constant for state do login. |
static String |
DO_LOGOUT
Constant for state do logout. |
static String |
DO_SEND_PASSWORD
Constant for state do send password. |
static int |
MIN_PASSWD_LENGTH
Minimum password length constant. |
static String |
NEW_PASSWORD
Constant for Input 'new password'. |
static String |
PASS_VERIFY
Constant for Input 'password verify'. |
static String |
PROMPT_CHANGE_PASSWORD
Constant for state prompt change password. |
static String |
PROMPT_CHANGE_PREFS
Constant for state prompt change preferences. |
static String |
PROMPT_LOGIN
Constant for state prompt login. |
static String |
PROMPT_SEND_PASSWORD
Constant for state send password. |
Fields inherited from class com.jcorporate.expresso.services.controller.LoginController |
---|
CLASS_HANDLER_NAME, DBNAME_COOKIE, DEFAULT_CLASS_NAME, LOGINNAME_COOKIE, PASSWORD_COOKIE |
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 | |
---|---|
LoginAction()
|
Method Summary | |
---|---|
protected String |
getPassword(ExpressoRequest request,
ExpressoResponse response)
Retrieves a password from the request and error-checks it. |
String |
getTitle()
Returns the title of this controller. |
protected void |
runDoChangePasswordState(ExpressoRequest request,
ExpressoResponse response)
|
protected void |
runDoChangePrefsState(ExpressoRequest request,
ExpressoResponse response)
|
protected void |
runDoLoginState(ExpressoRequest request,
ExpressoResponse response)
Process a login request. |
protected void |
runDoLogoutState(ExpressoRequest request,
ExpressoResponse response)
Process a logout request. |
protected void |
runDoSendPasswordState(ExpressoRequest request,
ExpressoResponse response)
Send an email to the user with a URL to click to get their new password |
protected void |
runProcessLogoutState(ExpressoRequest request,
ExpressoResponse response)
override to remove dep. |
protected void |
runPromptChangePasswordState(ExpressoRequest request,
ExpressoResponse response)
|
protected void |
runPromptChangePrefsState(ExpressoRequest request,
ExpressoResponse response)
|
protected void |
runPromptLoginState(ExpressoRequest request,
ExpressoResponse response)
|
protected void |
runPromptSendPasswordState(ExpressoRequest request,
ExpressoResponse response)
|
boolean |
stateAllowed(String newState,
ExpressoRequest request)
Override the normal stateAllowed method to always allow access to this controller for certain states - otherwise no-one can ever log in :-) |
Methods inherited from class com.jcorporate.expresso.services.controller.SimpleLoginController |
---|
postLogoutProcessing, runEmailValidateState, runProcessChangePasswordState, runProcessLoginState, runProcessRevalidateState, runProcessSendPasswordState, runPromptRevalidateState |
Methods inherited from class com.jcorporate.expresso.services.controller.LoginController |
---|
attemptLogin, delayLogin, getDefaultLoginController, getDefaultRegistrationController, getLoginController, logInvalidLoginAttempt, postLoginProcessing, setCookie, setPersistentLoginAttributes, tryLogin |
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 |
Field Detail |
---|
public static final String PROMPT_LOGIN
public static final String DO_LOGIN
public static final String DO_LOGOUT
public static final String PROMPT_SEND_PASSWORD
public static final String DO_SEND_PASSWORD
public static final String PROMPT_CHANGE_PREFS
public static final String DO_CHANGE_PREFS
public static final String PROMPT_CHANGE_PASSWORD
public static final String DO_CHANGE_PASSWORD
public static final String NEW_PASSWORD
public static final String PASS_VERIFY
public static final int MIN_PASSWD_LENGTH
Constructor Detail |
---|
public LoginAction()
Method Detail |
---|
protected void runPromptLoginState(ExpressoRequest request, ExpressoResponse response) throws ControllerException, DBException
runPromptLoginState
in class com.jcorporate.expresso.services.controller.SimpleLoginController
ControllerException
DBException
protected void runDoLoginState(ExpressoRequest request, ExpressoResponse response) throws ControllerException, NonHandleableException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.
NonHandleableException
- upon fatal error.protected void runDoLogoutState(ExpressoRequest request, ExpressoResponse response) throws ControllerException, NonHandleableException, DBException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.
NonHandleableException
- upon fatal error.
DBException
- upon database object error.public String getTitle()
getTitle
in class com.jcorporate.expresso.services.controller.SimpleLoginController
protected void runPromptSendPasswordState(ExpressoRequest request, ExpressoResponse response) throws ControllerException
runPromptSendPasswordState
in class com.jcorporate.expresso.services.controller.SimpleLoginController
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.protected void runPromptChangePasswordState(ExpressoRequest request, ExpressoResponse response) throws ControllerException
runPromptChangePasswordState
in class com.jcorporate.expresso.services.controller.SimpleLoginController
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.protected void runPromptChangePrefsState(ExpressoRequest request, ExpressoResponse response) throws ControllerException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.protected void runDoChangePrefsState(ExpressoRequest request, ExpressoResponse response) throws ControllerException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.protected void runDoChangePasswordState(ExpressoRequest request, ExpressoResponse response) throws ControllerException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.protected void runDoSendPasswordState(ExpressoRequest request, ExpressoResponse response) throws ControllerException, NonHandleableException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.
NonHandleableException
- upon fatal error.protected void runProcessLogoutState(ExpressoRequest request, ExpressoResponse response) throws ControllerException, DBException
runProcessLogoutState
in class com.jcorporate.expresso.services.controller.SimpleLoginController
request
- The framework controller requestresponse
- The framework ExpressoResponse object
ControllerException
- upon logic error
DBException
- upon database object error.protected String getPassword(ExpressoRequest request, ExpressoResponse response) throws ControllerException, DBException, NonHandleableException
request
- the ExpressoRequest
object.response
- the ExpressoResponse
object.
ControllerException
- upon error.
NonHandleableException
- upon fatal error.
DBException
- upon database access errorpublic boolean stateAllowed(String newState, ExpressoRequest request) throws ControllerException
stateAllowed
in class com.jcorporate.expresso.services.controller.SimpleLoginController
newState
- the state to transition to.request
- The controllerRequest object
ControllerException
- if there is an error while looking up the sercurity permissions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |