Java Doc for MapBasedUserInfo.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) 


java.lang.Object
   com.jcorporate.expresso.core.security.MapBasedUserInfo

MapBasedUserInfo
public class MapBasedUserInfo implements UserInfo(Code)
A User Info implementation that is Map based instead of database object based. Although this isn't usually used in Expresso, a few cases, where we need a SuperUser, for example when database access doesn't exist. It is not considered something to use on a broad basis, more as a workaround for some special startup conditions.
author:
   Michael Rimov



Constructor Summary
public  MapBasedUserInfo()
     Default constructor.

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


Constructor Detail
MapBasedUserInfo
public MapBasedUserInfo()(Code)
Default constructor.




Method Detail
add
public synchronized void add() throws DBException(Code)

throws:
  DBException - If the add fails



delete
public synchronized void delete() throws DBException(Code)

throws:
  DBException - If the delete fails



find
public synchronized boolean find() throws DBException(Code)
true if the user is found
throws:
  DBException - If the find fails



getAccountStatus
public synchronized String getAccountStatus() throws DBException(Code)
Retrieve the current account status. java.lang.String
throws:
  DBException - If the find fails



getAllUsers
public Vector getAllUsers() throws DBException(Code)
Unsupported operation java.util.Vector
throws:
  DBException - If there is an error during the retrieval



getCreateDate
public synchronized String getCreateDate() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getDBName
public synchronized String getDBName()(Code)
String



getDataContext
public synchronized String getDataContext()(Code)
String



getEmail
public synchronized String getEmail() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getEmailAuthCode
public synchronized String getEmailAuthCode() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getEmailValCode
public synchronized String getEmailValCode() throws DBException(Code)
java.lang.String
throws:
  DBException - If the find fails



getField
public String getField(String fieldName) throws DBException(Code)
Not Implemented
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
throws:
  java.lang.UnsupportedOperationException - This is not Implemented



getGroups
public Vector getGroups() throws DBException(Code)
Currently unsupported. Returns a blank Vector Vector Group names that this user belongs to
throws:
  DBException - If an error occurs when the group info is read



getLoginName
public synchronized String getLoginName() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getPassword
public synchronized String getPassword() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getPrimaryGroup
public synchronized String getPrimaryGroup() throws DBException(Code)
name of the primary group of this user; null if no group isfound



getRegComplete
public synchronized boolean getRegComplete() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getRegistrationDomain
public synchronized String getRegistrationDomain() throws DBException(Code)
java.lang.String
throws:
  DBException - If the underlying User implementation throws thesame



getUid
public synchronized int getUid() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getUpdateDate
public synchronized String getUpdateDate() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getUserName
public synchronized String getUserName() throws DBException(Code)
java.lang.String
throws:
  DBException - If there is an error during the retrieval



getValues
public Vector getValues() throws DBException(Code)
Unsupported Operation A ValidValue vector describing what can be looked up.



hashEncodePassword
public String hashEncodePassword(String password) throws DBException(Code)
this returns an appropriately hashed password.
Parameters:
  password - to be hashed appropriately hashed password.



passwordEquals
public synchronized boolean passwordEquals(String testPassword) throws DBException(Code)
Checks if the given password equals what we have on file.
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 synchronized void retrieve() throws DBException(Code)

throws:
  DBException - If the retrieve fails



sendAuthEmail
public void sendAuthEmail() throws DBException(Code)
Not Implemented



sendFollowUpEmail
public void sendFollowUpEmail() throws DBException(Code)
Not Implemented



setAccountStatus
public synchronized void setAccountStatus(String accountStatus) throws DBException(Code)

Parameters:
  accountStatus - java.lang.String
throws:
  DBException - If there is an error



setDBName
public synchronized void setDBName(String newDBName) throws DBException(Code)

Parameters:
  newDBName - java.lang.String
throws:
  DBException - If there is an error



setEmail
public synchronized void setEmail(String email) throws DBException(Code)

Parameters:
  email - java.lang.String
throws:
  DBException - If there is an error



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



setLoginName
public synchronized void setLoginName(String loginName) throws DBException(Code)

Parameters:
  loginName - java.lang.String
throws:
  DBException - If there is an error



setPassword
public synchronized void setPassword(String password) throws DBException(Code)

Parameters:
  password - java.lang.String
throws:
  DBException - If there is an error



setRegComplete
public synchronized void setRegComplete(boolean status) throws DBException(Code)

Parameters:
  status - java.lang.String
throws:
  DBException - If there is an error



setRegistrationDomain
public synchronized void setRegistrationDomain(String id) throws DBException(Code)

Parameters:
  id - java.lang.String
throws:
  DBException - If there is an error



setUid
public synchronized void setUid(int uid) throws DBException(Code)

Parameters:
  uid - The uid of the user
throws:
  DBException - If there is an error



setUserName
public synchronized void setUserName(String name) throws DBException(Code)

Parameters:
  name - java.lang.String
throws:
  DBException - If there is an error



update
public void update() throws DBException(Code)
There should be no copying and detaching from the datasource. This does nothing.
throws:
  DBException - If the add fails



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.