Java Doc for LoginEvents.java in  » ERP-CRM-Financial » SourceTap-CRM » org » ofbiz » securityext » login » 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 » ERP CRM Financial » SourceTap CRM » org.ofbiz.securityext.login 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.ofbiz.securityext.login.LoginEvents

All known Subclasses:   com.sourcetap.sfa.security.SFALoginEvents,
LoginEvents
public class LoginEvents (Code)
LoginEvents - Events for UserLogin and Security handling.
author:
   Andy Zeneski
author:
   David E. Jones
author:
   Dustin Caldwell
author:
   Tom Herrick
version:
   $Revision: 1.10 $
since:
   2.0


Field Summary
final public static  StringEXTERNAL_LOGIN_KEY_ATTR
    
public static  MapexternalLoginKeys
    
public static  MaploggedInSessions
     This Map is keyed by userLoginId and the value is another Map keyed by the webappName and the value is the sessionId.
final public static  Stringmodule
    


Method Summary
public static  StringautoLoginCheck(HttpServletRequest request, HttpServletResponse response)
    
public static  StringautoLoginRemove(HttpServletRequest request, HttpServletResponse response)
    
public static  StringautoLoginSet(HttpServletRequest request, HttpServletResponse response)
    
public static  StringcheckExternalLoginKey(HttpServletRequest request, HttpServletResponse response)
    
public static  StringcheckLogin(HttpServletRequest request, HttpServletResponse response)
     An HTTP WebEvent handler that checks to see is a userLogin is logged in.
public static  voidcleanupExternalLoginKey(HttpSession session)
    
public static  voiddoBasicLogin(GenericValue userLogin, HttpServletRequest request)
    
public static  voiddoBasicLogout(GenericValue userLogin, HttpServletRequest request)
    
public static  StringemailPassword(HttpServletRequest request, HttpServletResponse response)
     Email the password for the userLoginId specified in the request object.
public static  StringforgotPassword(HttpServletRequest request, HttpServletResponse response)
     The user forgot his/her password.
protected static  StringgetAutoLoginCookieName(HttpServletRequest request)
    
public static  StringgetAutoUserLoginId(HttpServletRequest request)
    
public static  StringgetExternalLoginKey(HttpServletRequest request)
    
protected static  booleanhasBasePermission(GenericValue userLogin, HttpServletRequest request)
    
public static  booleanisLoggedInSession(GenericValue userLogin, HttpServletRequest request)
    
public static  booleanisLoggedInSession(String userLoginId, HttpServletRequest request, boolean checkSessionId)
    
public static  Stringlogin(HttpServletRequest request, HttpServletResponse response)
     An HTTP WebEvent handler that logs in a userLogin.
public static  voidloginToSession(GenericValue userLogin, HttpServletRequest request)
    
public static  Stringlogout(HttpServletRequest request, HttpServletResponse response)
     An HTTP WebEvent handler that logs out a userLogin by clearing the session.
Parameters:
  request - The HTTP request object for the current JSP or Servlet request.
Parameters:
  response - The HTTP response object for the current JSP or Servlet request.
public static  voidlogoutFromAllSessions(GenericValue userLogin)
    
public static  StringsaveEntryParams(HttpServletRequest request, HttpServletResponse response)
     Save USERNAME and PASSWORD for use by auth pages even if we start in non-auth pages.
public static  StringshowPasswordHint(HttpServletRequest request, HttpServletResponse response)
     Show the password hint for the userLoginId specified in the request object.

Field Detail
EXTERNAL_LOGIN_KEY_ATTR
final public static String EXTERNAL_LOGIN_KEY_ATTR(Code)



externalLoginKeys
public static Map externalLoginKeys(Code)
This Map is keyed by the randomly generated externalLoginKey and the value is a UserLogin GenericValue object



loggedInSessions
public static Map loggedInSessions(Code)
This Map is keyed by userLoginId and the value is another Map keyed by the webappName and the value is the sessionId. When a user logs in an entry in this Map will be populated for the given user, webapp and session. When checking security this Map will be checked if the user is logged in to see if we should log them out automatically; this implements the universal logout. When a user logs out this Map will be cleared so the user will be logged out automatically on subsequent requests.



module
final public static String module(Code)





Method Detail
autoLoginCheck
public static String autoLoginCheck(HttpServletRequest request, HttpServletResponse response)(Code)



autoLoginRemove
public static String autoLoginRemove(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException(Code)



autoLoginSet
public static String autoLoginSet(HttpServletRequest request, HttpServletResponse response)(Code)



checkExternalLoginKey
public static String checkExternalLoginKey(HttpServletRequest request, HttpServletResponse response)(Code)



checkLogin
public static String checkLogin(HttpServletRequest request, HttpServletResponse response)(Code)
An HTTP WebEvent handler that checks to see is a userLogin is logged in. If not, the user is forwarded to the /login.jsp page.
Parameters:
  request - The HTTP request object for the current JSP or Servlet request.
Parameters:
  response - The HTTP response object for the current JSP or Servlet request.



cleanupExternalLoginKey
public static void cleanupExternalLoginKey(HttpSession session)(Code)



doBasicLogin
public static void doBasicLogin(GenericValue userLogin, HttpServletRequest request)(Code)



doBasicLogout
public static void doBasicLogout(GenericValue userLogin, HttpServletRequest request)(Code)



emailPassword
public static String emailPassword(HttpServletRequest request, HttpServletResponse response)(Code)
Email the password for the userLoginId specified in the request object.
Parameters:
  request - The HTTPRequest object for the current request
Parameters:
  response - The HTTPResponse object for the current request String specifying the exit status of this event



forgotPassword
public static String forgotPassword(HttpServletRequest request, HttpServletResponse response)(Code)
The user forgot his/her password. This will either call showPasswordHint or emailPassword.
Parameters:
  request - The HTTPRequest object for the current request
Parameters:
  response - The HTTPResponse object for the current request String specifying the exit status of this event



getAutoLoginCookieName
protected static String getAutoLoginCookieName(HttpServletRequest request)(Code)



getAutoUserLoginId
public static String getAutoUserLoginId(HttpServletRequest request)(Code)



getExternalLoginKey
public static String getExternalLoginKey(HttpServletRequest request)(Code)
Gets (and creates if necessary) a key to be used for an external login parameter



hasBasePermission
protected static boolean hasBasePermission(GenericValue userLogin, HttpServletRequest request)(Code)



isLoggedInSession
public static boolean isLoggedInSession(GenericValue userLogin, HttpServletRequest request)(Code)



isLoggedInSession
public static boolean isLoggedInSession(String userLoginId, HttpServletRequest request, boolean checkSessionId)(Code)



login
public static String login(HttpServletRequest request, HttpServletResponse response)(Code)
An HTTP WebEvent handler that logs in a userLogin. This should run before the security check.
Parameters:
  request - The HTTP request object for the current JSP or Servlet request.
Parameters:
  response - The HTTP response object for the current JSP or Servlet request. Return a boolean which specifies whether or not the calling Servlet orJSP should generate its own content. This allows an event to override the default content.



loginToSession
public static void loginToSession(GenericValue userLogin, HttpServletRequest request)(Code)



logout
public static String logout(HttpServletRequest request, HttpServletResponse response)(Code)
An HTTP WebEvent handler that logs out a userLogin by clearing the session.
Parameters:
  request - The HTTP request object for the current JSP or Servlet request.
Parameters:
  response - The HTTP response object for the current JSP or Servlet request. Return a boolean which specifies whether or not the calling Servlet orJSP should generate its own content. This allows an event to override the default content.



logoutFromAllSessions
public static void logoutFromAllSessions(GenericValue userLogin)(Code)



saveEntryParams
public static String saveEntryParams(HttpServletRequest request, HttpServletResponse response)(Code)
Save USERNAME and PASSWORD for use by auth pages even if we start in non-auth pages.
Parameters:
  request - The HTTP request object for the current JSP or Servlet request.
Parameters:
  response - The HTTP response object for the current JSP or Servlet request.



showPasswordHint
public static String showPasswordHint(HttpServletRequest request, HttpServletResponse response)(Code)
Show the password hint for the userLoginId specified in the request object.
Parameters:
  request - The HTTPRequest object for the current request
Parameters:
  response - The HTTPResponse object for the current request String specifying the exit status of this event



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(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.