Java Doc for GolfShopUserManagerImpl.java in  » J2EE » Enhydra-Demos » golfShop » business » user » 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 » Enhydra Demos » golfShop.business.user 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   golfShop.business.user.GolfShopUserManagerImpl

GolfShopUserManagerImpl
public class GolfShopUserManagerImpl implements GolfShopUserManager(Code)
The User Manager Business Object. This object handles requests for user specific data and login verification.
author:
   Shawn McMurdo
version:
   $Revision: 1.1 $


Field Summary
final public  intACCOUNT_DISABLED
     ACCOUNT_DISABLED indicates that the account for the requested user has been disabled by the administrator.
final public  intAUTH_FAILED
     Username and password verification failed because of authentication failure. AUTH_FAILED is thrown by a login request if the username does not exist in the User database, the password was incorrect, or an otherwise unknown error occured during the login request.
final public  intAUTH_OK
     Username and password verification was successful.
final public  intIO_ERROR
     IO_ERROR is thrown by methods of the UserManager if a communication failure prevented access to required information from the User database or elsewhere.
final public  intMULTIPLE_LOGIN
     MULTIPLE_LOGIN indicates that a user has attempted to login more than the maximum number of allowable sessions.
final public  intPASSWORD_TYPO
     PASSWORD_TYPO indicates that the two copies of the new password were not identical, implying that a user may have accidentally typed a new password incorrectly.
final public  intPASSWORD_WEAK
     PASSWORD_WEAK indicates that the UserManager refused to accept a user's password change request because the new password does not comply with policy relating to password strength.
final public  intPERMISSION_DENIED
     PERMISSION_DENIED indicates that a UserManager method has failed because the requesting user has insufficient privilege to perform the requested operation.
final public  intUNKNOWN_ERROR
     UNKNOWN_ERROR is indicated by methods other than the user login method to report that an unknown error has prevented a request from being processed.
final public  intUNKNOWN_HOST
     UNKNOWN_HOST indicates that a login attempt failed because the IP address of the requester's host was not furnished with the login request.
final public  intUSERNAME_ALREADY_EXISTS
     USERNAME_ALREADY_EXISTS indicates that a new account could not be created because an account with that same username already exists.


Method Summary
public  intauthenticate(String username, String password)
     Process an authentication request.
public  voidcreateAccount(String username, String password, String address1, String address2, String city, String state, String zip, String creditCard, String email, Session session)
     This function creates a new account, then calls login() above to create the session etc...
public  UsergetUser(String username)
    
public  voidlogin(String username, String password, Session session)
     Process a login request issued by a user.
public  voidlogout(Session session)
    

Field Detail
ACCOUNT_DISABLED
final public int ACCOUNT_DISABLED(Code)
ACCOUNT_DISABLED indicates that the account for the requested user has been disabled by the administrator.



AUTH_FAILED
final public int AUTH_FAILED(Code)
Username and password verification failed because of authentication failure. AUTH_FAILED is thrown by a login request if the username does not exist in the User database, the password was incorrect, or an otherwise unknown error occured during the login request. The reason for the third case is that it is not wise from a security standpoint to give unknown users potentially valuable information about possible errors occuring in the login facility.



AUTH_OK
final public int AUTH_OK(Code)
Username and password verification was successful.



IO_ERROR
final public int IO_ERROR(Code)
IO_ERROR is thrown by methods of the UserManager if a communication failure prevented access to required information from the User database or elsewhere.



MULTIPLE_LOGIN
final public int MULTIPLE_LOGIN(Code)
MULTIPLE_LOGIN indicates that a user has attempted to login more than the maximum number of allowable sessions.



PASSWORD_TYPO
final public int PASSWORD_TYPO(Code)
PASSWORD_TYPO indicates that the two copies of the new password were not identical, implying that a user may have accidentally typed a new password incorrectly.



PASSWORD_WEAK
final public int PASSWORD_WEAK(Code)
PASSWORD_WEAK indicates that the UserManager refused to accept a user's password change request because the new password does not comply with policy relating to password strength. For example, the password may not have been long enough or contained enough nonalphabetic characters.



PERMISSION_DENIED
final public int PERMISSION_DENIED(Code)
PERMISSION_DENIED indicates that a UserManager method has failed because the requesting user has insufficient privilege to perform the requested operation.



UNKNOWN_ERROR
final public int UNKNOWN_ERROR(Code)
UNKNOWN_ERROR is indicated by methods other than the user login method to report that an unknown error has prevented a request from being processed. The UserManager.login() method reports AUTH_FAILED for unknown errors for security reasons.



UNKNOWN_HOST
final public int UNKNOWN_HOST(Code)
UNKNOWN_HOST indicates that a login attempt failed because the IP address of the requester's host was not furnished with the login request.



USERNAME_ALREADY_EXISTS
final public int USERNAME_ALREADY_EXISTS(Code)
USERNAME_ALREADY_EXISTS indicates that a new account could not be created because an account with that same username already exists.





Method Detail
authenticate
public int authenticate(String username, String password)(Code)
Process an authentication request. Verify that the user's account and password are valid.
Parameters:
  username - The username for the account.
Parameters:
  password - The password entered by the user.



createAccount
public void createAccount(String username, String password, String address1, String address2, String city, String state, String zip, String creditCard, String email, Session session) throws LoginException, SessionException(Code)
This function creates a new account, then calls login() above to create the session etc...
Parameters:
  username - The user identification entered by the user.
Parameters:
  password - The password entered by the user.
exception:
  LoginException - Thrown if authentication fails.



getUser
public User getUser(String username)(Code)



login
public void login(String username, String password, Session session) throws LoginException, SessionException(Code)
Process a login request issued by a user. Verify that the user's account and password are valid. A username may be logged in multiple times. If the login is sucessfull, the session object's user pointer is set to the user data object represeting the logged in username.
Parameters:
  username - The user identification entered by the user.
Parameters:
  password - The password entered by the user.
Parameters:
  session - The session object for the broweser attempting thelogin.
exception:
  LoginException - Thrown if authentication fails.



logout
public void logout(Session session) throws SessionException(Code)

Parameters:
  session - The session to log out.



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.