Java Doc for DODSRealm.java in  » J2EE » enhydra » org » enhydra » realm » 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 » org.enhydra.realm 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.enhydra.realm.DODSRealm

DODSRealm
public class DODSRealm extends RealmBase (Code)

author:
   Tanja Jovanovic
version:
   1.0

Inner Class :class DODSRealmApplication extends StandardApplication

Field Summary
protected  javax.naming.ContextcompCtx
     Comp context.
protected  StringconfigurationFilePath
     Path to configuration file for DODS.
protected  StringcredColUserTableName
     The column in the user table that holds user's credintials.
protected  javax.naming.ContextenvCtx
     Env context.
final protected static  Stringinfo
     Descriptive information about this Realm implementation.
protected  booleanlocalDataSource
     Context local datasource.
final protected static  Stringname
     Descriptive information about this Realm implementation.
protected  NamingContextnamingContext
     Associated JNDI context.
protected  NamingResourcesnamingResources
     Associated naming resources.
protected  HashMapobjectNames
     Objectnames hashtable.
protected  StringroleColRoleTableName
     The column in the role table that holds roles.
protected  StringroleColUserRoleTableName
     The column in the user-role table that holds roles.
protected  StringroleTableName
     The table that holds data about roles.
final protected static  StringManagersm
     The string manager for this package.
protected  StringuserColUserRoleTableName
     The column in the user-role table that holds users.
protected  StringuserColUserTableName
     The column in the user table that holds user's name.
protected  StringuserRoleTableName
     The table that holds data about relationships between users and roles.
protected  StringuserTableName
     The table that holds data about users and their credentials.


Method Summary
public  voidaddEjb(ContextEjb ejb)
     Set the specified EJBs in the naming context.
public  voidaddEnvironment(ContextEnvironment env)
     Set the specified environment entries in the naming context.
public  voidaddResource(ContextResource resource)
     Set the specified resources in the naming context.
public  voidaddResourceEnvRef(ContextResourceEnvRef resourceEnvRef)
     Set the specified resources in the naming context.
public  voidaddResourceLink(ContextResourceLink resourceLink)
     Set the specified resource link in the naming context.
public synchronized  Principalauthenticate(String username, String credentials)
     Return the Principal associated with the specified username and credentials, if there is one; otherwise return null. If there are any errors with the JDBC connection, executing the query or anything we return null (don't authenticate).
protected  ObjectNamecreateObjectName(ContextResource resource)
     Create an ObjectName for this ContextResource object.
public  StringgetConfigurationFilePath()
     Returns path to configuration file for DODS.
public  StringgetCredColUserTableName()
     Returns the name of the credential colum in user table.
public  booleangetLocalDataSource()
     Return if the datasource will be looked up in the webapp JNDI Context.
protected  StringgetName()
     Return a short name for this Realm implementation.
public  NamingContextgetNamingContext()
     Return the associated naming context.
protected  StringgetPassword(String username)
     Return the password associated with the given principal's user name.
protected  PrincipalgetPrincipal(String username)
     Return the Principal associated with the given user name.
public  StringgetRoleColRoleTableName()
     Returns the name of the role colum in role table.
public  StringgetRoleColUserRoleTableName()
     Returns the name of the role colum in user-role table.
public  StringgetRoleTableName()
     Returns the name of the table that contains roles.
protected  ArrayListgetRoles(String username)
     Return the roles associated with the gven user name.
public  StringgetUserColUserRoleTableName()
     Returns the name of the user colum in user-role table.
public  StringgetUserColUserTableName()
     Returns the name of the user colum in user table.
public  StringgetUserRoleTableName()
     Returns the name of the table that contains relationships between users and roles.
public  StringgetUserTableName()
     Returns the name of the table that contains users and credentials.
protected  voidrelease(Connection dbConnection)
     Release our use of this connection so that it can be recycled.
public  voidsetConfigurationFilePath(String configurationFilePath)
     Sets path to configuration file for DODS.
public  voidsetCredColUserTableName(String credColUserTableName)
     Sets the name of the credential colum in user table.
public  voidsetLocalDataSource(boolean localDataSource)
     Set to true to cause the datasource to be looked up in the webapp JNDI Context.
public  voidsetRoleColRoleTableName(String roleColRoleTableName)
     Sets the name of the role colum in role table.
public  voidsetRoleColUserRoleTableName(String roleColUserRoleTableName)
     Sets the name of the role colum in user-role table.
public  voidsetRoleTableName(String roleTableName)
     Sets the name of the table that contains roles.
public  voidsetUserColUserRoleTableName(String userColUserRoleTableName)
     Sets the name of the user colum in user-role table.
public  voidsetUserColUserTableName(String userColUserTableName)
     Sets the name of the user colum in user table.
public  voidsetUserRoleTableName(String userRoleTableName)
     Sets the name of the table that contains relationships between users and roles.
public  voidsetUserTableName(String userTableName)
     Sets the name of the table that contains users and credentials.
public  voidstart()
     Prepare for active use of the public methods of this Component.
public  voidstop()
     Gracefully shut down active use of the public methods of this Component.

Field Detail
compCtx
protected javax.naming.Context compCtx(Code)
Comp context.



configurationFilePath
protected String configurationFilePath(Code)
Path to configuration file for DODS.



credColUserTableName
protected String credColUserTableName(Code)
The column in the user table that holds user's credintials.



envCtx
protected javax.naming.Context envCtx(Code)
Env context.



info
final protected static String info(Code)
Descriptive information about this Realm implementation.



localDataSource
protected boolean localDataSource(Code)
Context local datasource.



name
final protected static String name(Code)
Descriptive information about this Realm implementation.



namingContext
protected NamingContext namingContext(Code)
Associated JNDI context.



namingResources
protected NamingResources namingResources(Code)
Associated naming resources.



objectNames
protected HashMap objectNames(Code)
Objectnames hashtable.



roleColRoleTableName
protected String roleColRoleTableName(Code)
The column in the role table that holds roles.



roleColUserRoleTableName
protected String roleColUserRoleTableName(Code)
The column in the user-role table that holds roles.



roleTableName
protected String roleTableName(Code)
The table that holds data about roles.



sm
final protected static StringManager sm(Code)
The string manager for this package.



userColUserRoleTableName
protected String userColUserRoleTableName(Code)
The column in the user-role table that holds users.



userColUserTableName
protected String userColUserTableName(Code)
The column in the user table that holds user's name.



userRoleTableName
protected String userRoleTableName(Code)
The table that holds data about relationships between users and roles.



userTableName
protected String userTableName(Code)
The table that holds data about users and their credentials.





Method Detail
addEjb
public void addEjb(ContextEjb ejb)(Code)
Set the specified EJBs in the naming context.



addEnvironment
public void addEnvironment(ContextEnvironment env)(Code)
Set the specified environment entries in the naming context.



addResource
public void addResource(ContextResource resource)(Code)
Set the specified resources in the naming context.



addResourceEnvRef
public void addResourceEnvRef(ContextResourceEnvRef resourceEnvRef)(Code)
Set the specified resources in the naming context.



addResourceLink
public void addResourceLink(ContextResourceLink resourceLink)(Code)
Set the specified resource link in the naming context.



authenticate
public synchronized Principal authenticate(String username, String credentials)(Code)
Return the Principal associated with the specified username and credentials, if there is one; otherwise return null. If there are any errors with the JDBC connection, executing the query or anything we return null (don't authenticate). This event is also logged, and the connection will be closed so that a subsequent request will automatically re-open it.
Parameters:
  username - Username of the Principal to look up
Parameters:
  credentials - Password or other credentials to use inauthenticating this username



createObjectName
protected ObjectName createObjectName(ContextResource resource) throws MalformedObjectNameException(Code)
Create an ObjectName for this ContextResource object.
Parameters:
  resource - The resource ObjectName The object name
exception:
  MalformedObjectNameException - if a name cannot be created



getConfigurationFilePath
public String getConfigurationFilePath()(Code)
Returns path to configuration file for DODS.



getCredColUserTableName
public String getCredColUserTableName()(Code)
Returns the name of the credential colum in user table. name of the credential colum in user table.



getLocalDataSource
public boolean getLocalDataSource()(Code)
Return if the datasource will be looked up in the webapp JNDI Context.



getName
protected String getName()(Code)
Return a short name for this Realm implementation.



getNamingContext
public NamingContext getNamingContext()(Code)
Return the associated naming context.



getPassword
protected String getPassword(String username)(Code)
Return the password associated with the given principal's user name.



getPrincipal
protected Principal getPrincipal(String username)(Code)
Return the Principal associated with the given user name.



getRoleColRoleTableName
public String getRoleColRoleTableName()(Code)
Returns the name of the role colum in role table. name of the role colum in role table.



getRoleColUserRoleTableName
public String getRoleColUserRoleTableName()(Code)
Returns the name of the role colum in user-role table. name of the role colum in user-role table.



getRoleTableName
public String getRoleTableName()(Code)
Returns the name of the table that contains roles. name of the table that contains roles.



getRoles
protected ArrayList getRoles(String username)(Code)
Return the roles associated with the gven user name.



getUserColUserRoleTableName
public String getUserColUserRoleTableName()(Code)
Returns the name of the user colum in user-role table. name of the user colum in user-role table.



getUserColUserTableName
public String getUserColUserTableName()(Code)
Returns the name of the user colum in user table. name of the user colum in user table.



getUserRoleTableName
public String getUserRoleTableName()(Code)
Returns the name of the table that contains relationships between users and roles. name of the table that contains relationshipsbetween users and roles.



getUserTableName
public String getUserTableName()(Code)
Returns the name of the table that contains users and credentials. name of the table that contains users and credentials



release
protected void release(Connection dbConnection)(Code)
Release our use of this connection so that it can be recycled.
Parameters:
  dbConnection - The connection to be released



setConfigurationFilePath
public void setConfigurationFilePath(String configurationFilePath)(Code)
Sets path to configuration file for DODS.
Parameters:
  configurationFilePath - path to configuration file for DODS.



setCredColUserTableName
public void setCredColUserTableName(String credColUserTableName)(Code)
Sets the name of the credential colum in user table.
Parameters:
  credColUserTableName - name of the credential colum in user table.



setLocalDataSource
public void setLocalDataSource(boolean localDataSource)(Code)
Set to true to cause the datasource to be looked up in the webapp JNDI Context.
Parameters:
  localDataSource - the new flag value



setRoleColRoleTableName
public void setRoleColRoleTableName(String roleColRoleTableName)(Code)
Sets the name of the role colum in role table.
Parameters:
  roleColRoleTableName - name of the role colum in role table.



setRoleColUserRoleTableName
public void setRoleColUserRoleTableName(String roleColUserRoleTableName)(Code)
Sets the name of the role colum in user-role table.
Parameters:
  roleColUserRoleTableName - name of the role colum in user-role table.



setRoleTableName
public void setRoleTableName(String roleTableName)(Code)
Sets the name of the table that contains roles.
Parameters:
  roleTableName - name of the table that contains roles.



setUserColUserRoleTableName
public void setUserColUserRoleTableName(String userColUserRoleTableName)(Code)
Sets the name of the user colum in user-role table.
Parameters:
  userColUserRoleTableName - name of the user colum in user-role table.



setUserColUserTableName
public void setUserColUserTableName(String userColUserTableName)(Code)
Sets the name of the user colum in user table.
Parameters:
  userColUserTableName - name of the user colum in user table.



setUserRoleTableName
public void setUserRoleTableName(String userRoleTableName)(Code)
Sets the name of the table that contains relationships between users and roles.
Parameters:
  userRoleTableName - name of the table that contains relationships between users and roles.



setUserTableName
public void setUserTableName(String userTableName)(Code)
Sets the name of the table that contains users and credentials.
Parameters:
  userTableName - name of the table that contains users and credentials



start
public void start() throws LifecycleException(Code)
Prepare for active use of the public methods of this Component.
exception:
  LifecycleException - if this component detects a fatal errorthat prevents it from being started



stop
public void stop() throws LifecycleException(Code)
Gracefully shut down active use of the public methods of this Component.
exception:
  LifecycleException - if this component detects a fatal errorthat needs to be reported



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