| com.jcorporate.expresso.services.controller.LoginController com.jcorporate.expresso.services.controller.SimpleLoginController
SimpleLoginController | public class SimpleLoginController extends LoginController (Code) | | Main Login Controller - used for login/logout and basic interaction with
the registration system. This class recognizes the 'registration' classHandler
name in the expresso-config.xml It uses the classname in that field to
construct and forward to the appropriate registration class.
|
Method Summary | |
public String | getTitle() | public void | postLogoutProcessing(ControllerRequest request, ControllerResponse response) Template Method pattern. | protected void | runEmailValidateState(ControllerRequest request, ControllerResponse response) If the user has validated the email sent to validate change password request,
then this method actually resets thepassword and sends notification. | protected void | runProcessChangePasswordState(ControllerRequest request, ControllerResponse response) Processes the "change my password" request. | protected void | runProcessLoginState(ControllerRequest request, ControllerResponse response) Processes the login request.... | protected void | runProcessLogoutState(ControllerRequest request, ControllerResponse response) Logs a user out of the system and invalidates their session. | protected void | runProcessRevalidateState(ControllerRequest request, ControllerResponse response) This function processes the revalidation email request, attempts to
find the user, and if successfull, forwards the control over to the
RegistrationController to do the actual resending of the validation
email. | protected void | runProcessSendPasswordState(ControllerRequest request, ControllerResponse response) Process the "Please Send me a new password" state. | protected void | runPromptChangePasswordState(ControllerRequest request, ControllerResponse response) Displays the 'change password' page. | protected void | runPromptLoginState(ControllerRequest request, ControllerResponse response) Prompts the user for login. | protected void | runPromptRevalidateState(ControllerRequest request, ControllerResponse response) | protected void | runPromptSendPasswordState(ControllerRequest request, ControllerResponse response) | public synchronized boolean | stateAllowed(String newState, ControllerRequest params) |
SimpleLoginController | public SimpleLoginController()(Code) | | LoginController constructor. Sets all the states and parameters
for the system.
|
getTitle | public String getTitle()(Code) | | the title of this controller |
postLogoutProcessing | public void postLogoutProcessing(ControllerRequest request, ControllerResponse response) throws ControllerException(Code) | | Template Method pattern. override in subclasses as necessary
Parameters: request - The framework controller request Parameters: response - The framework ControllerResponse object |
runProcessRevalidateState | protected void runProcessRevalidateState(ControllerRequest request, ControllerResponse response) throws ControllerException, NonHandleableException(Code) | | This function processes the revalidation email request, attempts to
find the user, and if successfull, forwards the control over to the
RegistrationController to do the actual resending of the validation
email.
Parameters: request - The ControllerRequest object handed to usby the framework. Parameters: response - The ControllerResponse object handed to usby the framework throws: ControllerException - upon error throws: NonHandleableException - upon fatal error |
runPromptRevalidateState | protected void runPromptRevalidateState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code) | | This function prompts for email revalidation
Parameters: request - The ControllerRequest object handed to usby the framework. Parameters: response - The ControllerResponse object handed to usby the framework throws: ControllerException - upon error |
stateAllowed | public synchronized boolean stateAllowed(String newState, ControllerRequest params) throws ControllerException(Code) | | Override the normal stateAllowed method to always allow
access to this controller for certain states - otherwise no-one can ever log in :-)
Parameters: newState - the state to transition to. Parameters: params - The controllerRequest object true if the state is allowed for the currently logged in user. throws: ControllerException - if there is an error while looking up the sercurity permissions |
Methods inherited from com.jcorporate.expresso.services.controller.LoginController | protected int attemptLogin(ControllerRequest request, ControllerResponse response, ErrorCollection errors, HttpServletRequest hreq, HttpServletResponse hres, PersistentSession session) throws ControllerException, NonHandleableException, DBException(Code)(Java Doc) protected void delayLogin()(Code)(Java Doc) public Controller getDefaultLoginController() throws ControllerException(Code)(Java Doc) public Controller getDefaultRegistrationController() throws ControllerException(Code)(Java Doc) public static Controller getLoginController() throws ControllerException(Code)(Java Doc) public void logInvalidLoginAttempt(String msg, ControllerRequest request)(Code)(Java Doc) public void postLoginProcessing(ControllerRequest request, ControllerResponse response) throws ControllerException(Code)(Java Doc) public static void setCookie(String userName, String password, HttpServletResponse res, boolean clear, String dbname) throws ControllerException(Code)(Java Doc) public static void setPersistentLoginAttributes(ControllerRequest request, String loginName) throws ControllerException(Code)(Java Doc) public boolean stateAllowed(String newState, ControllerRequest params) throws ControllerException(Code)(Java Doc)
|
|
|