Java Doc for JResourceDS.java in  » J2EE » JOnAS-4.8.6 » org » objectweb » jonas » security » realm » factory » 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 » JOnAS 4.8.6 » org.objectweb.jonas.security.realm.factory 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.objectweb.jonas.security.realm.factory.JResource
   org.objectweb.jonas.security.realm.factory.JResourceDS

JResourceDS
public class JResourceDS extends JResource implements JResourceDSMBean(Code)
This class extends the JResource class for the Datasource implementation.
author:
   Florent Benoit



Constructor Summary
public  JResourceDS()
     Constructor.

Method Summary
public  UserfindUser(String username)
    
public  StringgetAlgorithm()
    
public  ArrayListgetArrayListCombinedRoles(User user)
    
public  StringgetDsName()
    
public  ReferencegetReference()
     Retrieves the Reference of the object.
public  StringgetRoleTable()
    
public  StringgetRoleTableRolenameCol()
    
public  StringgetRoleTableUsernameCol()
    
public  StringgetUserTable()
    
public  StringgetUserTablePasswordCol()
    
public  StringgetUserTableUsernameCol()
    
public  booleanisValidUser(User user, String credentials)
    
public  voidremoveMBeans()
    
public  voidsetAlgorithm(String algorithm)
    
public  voidsetDsName(String dsName)
    
public  voidsetRoleTable(String roleTable)
    
public  voidsetRoleTableRolenameCol(String roleTableRolenameCol)
    
public  voidsetRoleTableUsernameCol(String roleTableUsernameCol)
    
public  voidsetUserPrincipalsQuery(String userPrincipalsQuery)
    
public  StringsetUserPrincipalsQuery()
    
public  voidsetUserRolesQuery(String userRolesQuery)
    
public  StringsetUserRolesQuery()
    
public  voidsetUserTable(String userTable)
    
public  voidsetUserTablePasswordCol(String userTablePasswordCol)
    
public  voidsetUserTableUsernameCol(String userTableUsernameCol)
    
public  StringtoString()
    
public  StringtoXML()
    


Constructor Detail
JResourceDS
public JResourceDS() throws Exception(Code)
Constructor. Use the super constructor
throws:
  Exception - if super constructor fail




Method Detail
findUser
public User findUser(String username) throws JResourceException(Code)
Check if a user is found and return it
Parameters:
  username - the wanted user name the user found or null
throws:
  JResourceException - if there is a SQLException



getAlgorithm
public String getAlgorithm()(Code)
Get the default algorithm the default algorithm



getArrayListCombinedRoles
public ArrayList getArrayListCombinedRoles(User user) throws JResourceException(Code)
Get all the roles (from the roles and from the groups) of the given user
Parameters:
  user - the given user the array list of all the roles for a given user
throws:
  JResourceException - if it fails



getDsName
public String getDsName()(Code)
Get the name of the resource to use name of the resource



getReference
public Reference getReference() throws NamingException(Code)
Retrieves the Reference of the object. The Reference contains the factory used to create this object and the optional parameters used to configure the factory. the non-null Reference of the object.
throws:
  NamingException - if a naming exception was encountered whileretrieving the reference.



getRoleTable
public String getRoleTable()(Code)
Get the name of table which have the username/role name of table which have the username/role



getRoleTableRolenameCol
public String getRoleTableRolenameCol()(Code)
Get the name of the column of the role of the role table name of the column of the role of the role table



getRoleTableUsernameCol
public String getRoleTableUsernameCol()(Code)
Get the name of the column of the username of the role table name of the column of the username of the role table



getUserTable
public String getUserTable()(Code)
Get the name of the table which have the username/password name of the table which have the username/password



getUserTablePasswordCol
public String getUserTablePasswordCol()(Code)
Get the name of column of the password of the user table name of column of the password of the user table



getUserTableUsernameCol
public String getUserTableUsernameCol()(Code)
Get the name of the column of the username of the user table name of the column of the username of the user table



isValidUser
public boolean isValidUser(User user, String credentials)(Code)
Check if the given credential is the right credential for the given user
Parameters:
  user - user to check its credentials
Parameters:
  credentials - the given credentials true if the credential is valid for this user



removeMBeans
public void removeMBeans() throws JResourceException(Code)
Remove all the Mbeans used by this resource
throws:
  JResourceException - if the MBeans can not be removed



setAlgorithm
public void setAlgorithm(String algorithm)(Code)
Set the default algorithm to use
Parameters:
  algorithm - algorithm to be used



setDsName
public void setDsName(String dsName)(Code)
Set the name of the resource to use
Parameters:
  dsName - name of the resource



setRoleTable
public void setRoleTable(String roleTable)(Code)
Set the name of table which have the username/role
Parameters:
  roleTable - name of table which have the username/role



setRoleTableRolenameCol
public void setRoleTableRolenameCol(String roleTableRolenameCol)(Code)
Set the name of the column of the role of the role table
Parameters:
  roleTableRolenameCol - name of the column of the role of the roletable



setRoleTableUsernameCol
public void setRoleTableUsernameCol(String roleTableUsernameCol)(Code)
Set the name of the column of the username of the role table
Parameters:
  roleTableUsernameCol - name of the column of the username of therole table



setUserPrincipalsQuery
public void setUserPrincipalsQuery(String userPrincipalsQuery)(Code)
Set the user defined query for retrieving principals
Parameters:
  userPrincipalsQuery - the user defined query for retrievingprincipals



setUserPrincipalsQuery
public String setUserPrincipalsQuery()(Code)
Gets the user defined query for retrieving principals the user defined query for retrieving principals



setUserRolesQuery
public void setUserRolesQuery(String userRolesQuery)(Code)
Set the user defined query for retrieving roles
Parameters:
  userRolesQuery - the user defined query for retrieving roles



setUserRolesQuery
public String setUserRolesQuery()(Code)
Gets the user defined query for retrieving roles the user defined query for retrieving roles



setUserTable
public void setUserTable(String userTable)(Code)
Set the name of the table which have the username/password
Parameters:
  userTable - name of the table which have the username/password



setUserTablePasswordCol
public void setUserTablePasswordCol(String userTablePasswordCol)(Code)
Set the name of column of the password of the user table
Parameters:
  userTablePasswordCol - name of column of the password of the usertable



setUserTableUsernameCol
public void setUserTableUsernameCol(String userTableUsernameCol)(Code)
Set the name of the column of the username of the user table
Parameters:
  userTableUsernameCol - name of the column of the username of theuser table



toString
public String toString()(Code)
The string representation of this realm is the XML XML representation



toXML
public String toXML()(Code)
String representation of the MemoryRealm the xml representation of the MemoryRealm



Methods inherited from org.objectweb.jonas.security.realm.factory.JResource
public void clearCache()(Code)(Java Doc)
abstract public User findUser(String name) throws JResourceException(Code)(Java Doc)
abstract public ArrayList getArrayListCombinedRoles(User user) throws JResourceException(Code)(Java Doc)
public static Logger getLogger()(Code)(Java Doc)
protected MBeanServer getMBeanServer()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
abstract public Reference getReference() throws NamingException(Code)(Java Doc)
protected long getSequenceNumber()(Code)(Java Doc)
public Hashtable getUsers()(Code)(Java Doc)
abstract public boolean isValidUser(User user, String credentials)(Code)(Java Doc)
abstract public void removeMBeans() throws JResourceException(Code)(Java Doc)
public void saveConfig()(Code)(Java Doc)
public static void setLogger(Logger logger)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setUsers(Hashtable users)(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.