Java Doc for UserInfo.java in  » J2EE » Expresso » com » jcorporate » expresso » core » security » 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.core.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


com.jcorporate.expresso.core.security.UserInfo

All known Subclasses:   com.jcorporate.expresso.services.dbobj.DefaultUserInfo,  com.jcorporate.expresso.core.security.MapBasedUserInfo,  com.jcorporate.expresso.ext.dbobj.SingleDBUserInfo,  com.jcorporate.expresso.ext.ldap.UserLDAP,
UserInfo
public interface UserInfo extends LookupInterface(Code)
UserInfo defines the interface to an object that provides information about a user this object may get it's information from LDAP, Database, or any other source
author:
   Michael Nash




Method Summary
public  voidadd()
    
public  voiddelete()
    
public  booleanfind()
    
public  StringgetAccountStatus()
     Retrieve the current account status.
public  VectorgetAllUsers()
    
public  StringgetCreateDate()
    
public  StringgetDBName()
    
public  StringgetDataContext()
    
public  StringgetEmail()
    
public  StringgetEmailAuthCode()
    
public  StringgetEmailValCode()
    
public  StringgetField(String fieldName)
    
public  VectorgetGroups()
    
public  StringgetLoginName()
    
public  StringgetPassword()
    
public  StringgetPrimaryGroup()
    
public  booleangetRegComplete()
    
public  StringgetRegistrationDomain()
    
public  intgetUid()
    
public  StringgetUpdateDate()
    
public  StringgetUserName()
    
public  StringhashEncodePassword(String password)
     this returns an appropriately hashed password.
public  booleanpasswordEquals(String testPassword)
     Checks if the given password equals what we have on file.
public  voidretrieve()
    
public  voidsendAuthEmail()
    
public  voidsendFollowUpEmail()
    
public  voidsetAccountStatus(String accountStatus)
    
public  voidsetDBName(String newDBName)
    
public  voidsetEmail(String email)
    
public  voidsetEmailValCode(String code)
     Sets the code required for auth.
public  voidsetLoginName(String loginName)
    
public  voidsetPassword(String password)
    
public  voidsetRegComplete(boolean status)
    
public  voidsetRegistrationDomain(String id)
    
public  voidsetUid(int uid)
    
public  voidsetUserName(String name)
    
public  voidupdate()
    



Method Detail
add
public void add() throws DBException(Code)
Adds the current UserInfo object into the repository
throws:
  DBException - If the add fails



delete
public void delete() throws DBException(Code)
Deletes the current UserInfo object from the repository
throws:
  DBException - If the delete fails



find
public boolean find() throws DBException(Code)
Find a UserInfo object in the repository that matches the non-empty properties filled in the current UserInfo object true if the user is found
throws:
  DBException - If the find fails



getAccountStatus
public String getAccountStatus() throws DBException(Code)
Retrieve the current account status. Valid values are "A" (active), "I" (inactive), "D" (disabled) java.lang.String
throws:
  DBException - If the find fails



getAllUsers
public Vector getAllUsers() throws DBException(Code)
Returns a Vector of all the UserInfo objects in the repository java.util.Vector
throws:
  DBException - If there is an error during the retrieval



getCreateDate
public String getCreateDate() throws DBException(Code)
Returns the date that this UserInfo object was created java.lang.String
throws:
  DBException - If there is an error during the retrieval



getDBName
public String getDBName()(Code)
gets the DB context; can return null



getDataContext
public String getDataContext()(Code)
gets the DB context; can return null



getEmail
public String getEmail() throws DBException(Code)
Returns the email address for this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



getEmailAuthCode
public String getEmailAuthCode() throws DBException(Code)
Returns the email auth code previously set for this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



getEmailValCode
public String getEmailValCode() throws DBException(Code)
Retrieve the validation code required for authorization by email java.lang.String
throws:
  DBException - If the find fails



getField
public String getField(String fieldName) throws DBException(Code)
Return a vector of the group names that this user belongs to
Parameters:
  fieldName - The field to retrieve Vector Group names that this user belongs to
throws:
  DBException - If an error occurs when the group info is read



getGroups
public Vector getGroups() throws DBException(Code)
Return a vector of the group names that this user belongs to Vector Group names that this user belongs to
throws:
  DBException - If an error occurs when the group info is read



getLoginName
public String getLoginName() throws DBException(Code)
Returns the login name of this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



getPassword
public String getPassword() throws DBException(Code)
Returns the password for this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



getPrimaryGroup
public String getPrimaryGroup() throws DBException(Code)
the primary group of this user is appropriate for unix-like purposes, such as setting the group for a file permission name of the primary group of this user; null if no group is found



getRegComplete
public boolean getRegComplete() throws DBException(Code)
Returns the status of whether extended registration has been completed or not Valid values are "Y" or "N" java.lang.String
throws:
  DBException - If there is an error during the retrieval



getRegistrationDomain
public String getRegistrationDomain() throws DBException(Code)
Returns the unique integer for the registration domain that this user belongs to java.lang.String
throws:
  com.jcorporate.expresso.core.db.DBException - If the underlying User implementation throws the same



getUid
public int getUid() throws DBException(Code)
Returns the user id for this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



getUpdateDate
public String getUpdateDate() throws DBException(Code)
Returns the date that this UserInfo object was last modified java.lang.String
throws:
  DBException - If there is an error during the retrieval



getUserName
public String getUserName() throws DBException(Code)
Returns the descriptive string for this user java.lang.String
throws:
  DBException - If there is an error during the retrieval



hashEncodePassword
public String hashEncodePassword(String password) throws DBException(Code)
this returns an appropriately hashed password. appropriately hashed password.



passwordEquals
public boolean passwordEquals(String testPassword) throws DBException(Code)
Checks if the given password equals what we have on file. We don't directly compare userInfo fields because often we store the password in a hash instead of a normal string so we have to take the testPassword, hash it and compare the two hashes.
Parameters:
  testPassword - The string to test if it's a correct password true if the testPassword equals the password on file.
throws:
  DBException - If an error occurs when the group info is read



retrieve
public void retrieve() throws DBException(Code)
Retrieves the current user from the repository
throws:
  DBException - If the add fails



sendAuthEmail
public void sendAuthEmail() throws DBException(Code)

throws:
  DBException -



sendFollowUpEmail
public void sendFollowUpEmail() throws DBException(Code)

throws:
  DBException -



setAccountStatus
public void setAccountStatus(String accountStatus) throws DBException(Code)
Sets the current status of the account - "A" (active), "D" (disabled), "I" (inactive)
Parameters:
  accountStatus - java.lang.String
throws:
  DBException - If there is an error



setDBName
public void setDBName(String newDBName) throws DBException(Code)
Sets the DB context
Parameters:
  newDBName - java.lang.String
throws:
  DBException - If there is an error



setEmail
public void setEmail(String email) throws DBException(Code)
Sets the email address
Parameters:
  email - java.lang.String
throws:
  DBException - If there is an error



setEmailValCode
public void setEmailValCode(String code) throws DBException(Code)
Sets the code required for auth. via email
Parameters:
  code - java.lang.String
throws:
  DBException - If there is an error



setLoginName
public void setLoginName(String loginName) throws DBException(Code)
Sets the login name
Parameters:
  loginName - java.lang.String
throws:
  DBException - If there is an error



setPassword
public void setPassword(String password) throws DBException(Code)
Sets the password
Parameters:
  password - java.lang.String
throws:
  DBException - If there is an error



setRegComplete
public void setRegComplete(boolean status) throws DBException(Code)
Sets the extended registration complete flag - "Y" or "N"
Parameters:
  status - java.lang.String
throws:
  DBException - If there is an error



setRegistrationDomain
public void setRegistrationDomain(String id) throws DBException(Code)
Sets the registration domain
Parameters:
  id - java.lang.String
throws:
  DBException - If there is an error
See Also:   com.jcorporate.expresso.services.dbobj.RegistrationDomain



setUid
public void setUid(int uid) throws DBException(Code)
Sets the user UID
Parameters:
  uid - The uid of the user
throws:
  DBException - If there is an error



setUserName
public void setUserName(String name) throws DBException(Code)
Sets the user name
Parameters:
  name - java.lang.String
throws:
  DBException - If there is an error



update
public void update() throws DBException(Code)
Update the user in the repository with modified properties
throws:
  DBException - If the add fails



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