net.sf.oness.user.model.dao
Class UserHibernateDao

java.lang.Object
  extended byorg.springframework.orm.hibernate.support.HibernateDaoSupport
      extended bynet.sf.oness.common.model.dao.hibernate.HibernateDaoSupport
          extended bynet.sf.oness.user.model.dao.UserHibernateDao
All Implemented Interfaces:
net.sf.acegisecurity.providers.dao.AuthenticationDao, org.springframework.beans.factory.InitializingBean, UserDao

public class UserHibernateDao
extends net.sf.oness.common.model.dao.hibernate.HibernateDaoSupport
implements net.sf.acegisecurity.providers.dao.AuthenticationDao, UserDao

Retrieves user details from database.

Version:
$Revision: 1.3 $
Author:
Carlos Sanchez

Field Summary
 
Fields inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
logger
 
Constructor Summary
UserHibernateDao()
           
 
Method Summary
 Authority create(Authority authority)
          Create authority
 User create(User user)
          Create user
 net.sf.acegisecurity.providers.dao.User loadUserByUsername(java.lang.String name)
           
 
Methods inherited from class net.sf.oness.common.model.dao.hibernate.HibernateDaoSupport
filter, findByProperty, findByPropertyContent, loadAndClone
 
Methods inherited from class org.springframework.orm.hibernate.support.HibernateDaoSupport
afterPropertiesSet, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, initDao, setHibernateTemplate, setSessionFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserHibernateDao

public UserHibernateDao()
Method Detail

create

public User create(User user)
Description copied from interface: UserDao
Create user

Specified by:
create in interface UserDao
Parameters:
user -
Returns:

create

public Authority create(Authority authority)
Description copied from interface: UserDao
Create authority

Specified by:
create in interface UserDao
Parameters:
authority -
Returns:

loadUserByUsername

public net.sf.acegisecurity.providers.dao.User loadUserByUsername(java.lang.String name)
                                                           throws net.sf.acegisecurity.providers.dao.UsernameNotFoundException,
                                                                  org.springframework.dao.DataAccessException
Specified by:
loadUserByUsername in interface net.sf.acegisecurity.providers.dao.AuthenticationDao
Throws:
net.sf.acegisecurity.providers.dao.UsernameNotFoundException
org.springframework.dao.DataAccessException


Copyright © 2003-2005 ONess Project. All Rights Reserved.