Java Doc for HibernateUserDao.java in  » Content-Management-System » riotfamily » org » riotfamily » riot » hibernate » 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 » Content Management System » riotfamily » org.riotfamily.riot.hibernate.security 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


org.riotfamily.riot.hibernate.dao.HqlDao
   org.riotfamily.riot.hibernate.security.HibernateUserDao

HibernateUserDao
public class HibernateUserDao extends HqlDao implements RiotUserDao,InitializingBean(Code)
RiotUserDao that performs look-ups vie Hibernate.
author:
   Felix Gnass [fgnass at neteye dot de]
since:
   6.5


Field Summary
final public static  StringDEFAULT_PASSWORD
    
final public static  StringDEFAULT_USERNAME
    


Method Summary
public  voidafterPropertiesSet()
    
protected  booleananyUserExists()
    
public  RiotUserfindUserByCredentials(String username, String password)
    
protected  voidhashNewPassword(Object user)
    
public  voidsave(Object entity, Object parent)
    
public  voidsetEntityClass(Class entityClass)
     Sets the user class.
public  voidsetHashPasswords(boolean hashPasswords)
     Sets whether MD5 hashes should be used instead of plain text passwords.
public  voidsetInitialUser(RiotUser initialUser)
     Sets the initial user object that is persisted when no other user exists.
public  voidsetNewPasswordProperty(String newPasswordProperty)
     Sets the name of the (transient) property that holds the new plain text password.
public  voidsetPasswordProperty(String passwordProperty)
     Sets the name of the property that holds the (possibly hashed) password.
public  voidsetUsernameProperty(String usernameProperty)
     Sets the name of the property that holds the username.
public  voidupdate(Object entity)
    

Field Detail
DEFAULT_PASSWORD
final public static String DEFAULT_PASSWORD(Code)



DEFAULT_USERNAME
final public static String DEFAULT_USERNAME(Code)





Method Detail
afterPropertiesSet
public void afterPropertiesSet() throws Exception(Code)



anyUserExists
protected boolean anyUserExists()(Code)



findUserByCredentials
public RiotUser findUserByCredentials(String username, String password)(Code)



hashNewPassword
protected void hashNewPassword(Object user)(Code)



save
public void save(Object entity, Object parent)(Code)



setEntityClass
public void setEntityClass(Class entityClass)(Code)
Sets the user class.
throws:
  IllegalArgumentException - if the given class does not implement the RiotUser interface.



setHashPasswords
public void setHashPasswords(boolean hashPasswords)(Code)
Sets whether MD5 hashes should be used instead of plain text passwords.



setInitialUser
public void setInitialUser(RiotUser initialUser)(Code)
Sets the initial user object that is persisted when no other user exists. If set to null (default), a new instance of the HibernateUserDao.setEntityClass(Class) entity class is created via reflection.



setNewPasswordProperty
public void setNewPasswordProperty(String newPasswordProperty)(Code)
Sets the name of the (transient) property that holds the new plain text password. When HibernateUserDao.setHashPasswords(boolean) hashed passwords are used, this property is checked upon updates. If the property contains a non null value, this value is used to create a new password hash.



setPasswordProperty
public void setPasswordProperty(String passwordProperty)(Code)
Sets the name of the property that holds the (possibly hashed) password. This property is used by HibernateUserDao.findUserByCredentials(String,String) to look up a user upon login.



setUsernameProperty
public void setUsernameProperty(String usernameProperty)(Code)
Sets the name of the property that holds the username. This property is used by HibernateUserDao.findUserByCredentials(String,String) to look up a user upon login.



update
public void update(Object entity)(Code)



Methods inherited from org.riotfamily.riot.hibernate.dao.HqlDao
protected String buildCountHql(Object parent, ListParams params)(Code)(Java Doc)
protected String buildHql(Object parent, ListParams params)(Code)(Java Doc)
protected String buildMaxPositionHql(Object parent)(Code)(Java Doc)
public void delete(Object entity, Object parent)(Code)(Java Doc)
public Class getEntityClass()(Code)(Java Doc)
public int getListSize(Object parent, ListParams params)(Code)(Java Doc)
public String getObjectId(Object item)(Code)(Java Doc)
protected String getOrderBy(ListParams params)(Code)(Java Doc)
public String getWhere()(Code)(Java Doc)
protected String getWhereClause(Object parent, ListParams params)(Code)(Java Doc)
public boolean isPolymorph()(Code)(Java Doc)
protected boolean isSetPositionOnSave()(Code)(Java Doc)
public Collection list(Object parent, ListParams params)(Code)(Java Doc)
protected List listInternal(Object parent, ListParams params)(Code)(Java Doc)
public Object load(String objectId)(Code)(Java Doc)
public void save(Object entity, Object parent)(Code)(Java Doc)
public void setEntityClass(Class itemClass)(Code)(Java Doc)
public void setIdProperty(String idProperty)(Code)(Java Doc)
public void setPolymorph(boolean polymorph)(Code)(Java Doc)
protected void setPositionIfNeeded(Object entity, Object parent)(Code)(Java Doc)
public void setPositionProperty(String positionProperty)(Code)(Java Doc)
protected void setQueryParameters(Query query, Object parent, ListParams params)(Code)(Java Doc)
public void setSetPositionOnSave(boolean setPositionOnSave)(Code)(Java Doc)
public void setWhere(String where)(Code)(Java Doc)
public void swapEntity(Object item, Object parent, ListParams params, int swapWith)(Code)(Java Doc)
public void update(Object entity)(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.