Java Doc for SimpleLoginController.java in  » J2EE » Expresso » com » jcorporate » expresso » services » controller » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Expresso » com.jcorporate.expresso.services.controller 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


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.



Constructor Summary
public  SimpleLoginController()
     LoginController constructor.

Method Summary
public  StringgetTitle()
    
public  voidpostLogoutProcessing(ControllerRequest request, ControllerResponse response)
     Template Method pattern.
protected  voidrunEmailValidateState(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  voidrunProcessChangePasswordState(ControllerRequest request, ControllerResponse response)
     Processes the "change my password" request.
protected  voidrunProcessLoginState(ControllerRequest request, ControllerResponse response)
     Processes the login request....
protected  voidrunProcessLogoutState(ControllerRequest request, ControllerResponse response)
     Logs a user out of the system and invalidates their session.
protected  voidrunProcessRevalidateState(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  voidrunProcessSendPasswordState(ControllerRequest request, ControllerResponse response)
     Process the "Please Send me a new password" state.
protected  voidrunPromptChangePasswordState(ControllerRequest request, ControllerResponse response)
     Displays the 'change password' page.
protected  voidrunPromptLoginState(ControllerRequest request, ControllerResponse response)
     Prompts the user for login.
protected  voidrunPromptRevalidateState(ControllerRequest request, ControllerResponse response)
    
protected  voidrunPromptSendPasswordState(ControllerRequest request, ControllerResponse response)
    
public synchronized  booleanstateAllowed(String newState, ControllerRequest params)
    


Constructor Detail
SimpleLoginController
public SimpleLoginController()(Code)
LoginController constructor. Sets all the states and parameters for the system.




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



runEmailValidateState
protected void runEmailValidateState(ControllerRequest request, ControllerResponse response) throws ControllerException, NonHandleableException(Code)
If the user has validated the email sent to validate change password request, then this method actually resets thepassword and sends notification.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error
throws:
  NonHandleableException - upon fatal error



runProcessChangePasswordState
protected void runProcessChangePasswordState(ControllerRequest request, ControllerResponse response) throws ControllerException, NonHandleableException(Code)
Processes the "change my password" request.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error
throws:
  NonHandleableException - upon fatal error



runProcessLoginState
protected void runProcessLoginState(ControllerRequest request, ControllerResponse response) throws ControllerException, NonHandleableException(Code)
Processes the login request.... loops back to the promptLoginState if there's an error processing this system.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error
throws:
  NonHandleableException - upon fatal error



runProcessLogoutState
protected void runProcessLogoutState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code)
Logs a user out of the system and invalidates their session.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error



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



runProcessSendPasswordState
protected void runProcessSendPasswordState(ControllerRequest request, ControllerResponse response) throws ControllerException, NonHandleableException(Code)
Process the "Please Send me a new password" state.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error
throws:
  NonHandleableException - upon fatal error



runPromptChangePasswordState
protected void runPromptChangePasswordState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code)
Displays the 'change password' page.
Parameters:
  request - The framework controller request
Parameters:
  response - The framework ControllerResponse object
throws:
  ControllerException - upon logic error



runPromptLoginState
protected void runPromptLoginState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code)
Prompts the user for login.
Parameters:
  request - The ControllerRequest object
Parameters:
  response - The ControllerResponse object



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



runPromptSendPasswordState
protected void runPromptSendPasswordState(ControllerRequest request, ControllerResponse response) throws ControllerException(Code)



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



Fields inherited from com.jcorporate.expresso.services.controller.LoginController
final public static String CLASS_HANDLER_NAME(Code)(Java Doc)
final public static String DBNAME_COOKIE(Code)(Java Doc)
final public static String DEFAULT_CLASS_NAME(Code)(Java Doc)
final public static String LOGINNAME_COOKIE(Code)(Java Doc)
final public static String PASSWORD_COOKIE(Code)(Java Doc)

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)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.