ar.com.jiji.kaya.dao.hib
Class UserDaoImpl

java.lang.Object
  extended by org.springframework.dao.support.DaoSupport
      extended by org.springframework.orm.hibernate3.support.HibernateDaoSupport
          extended by ar.com.jiji.kaya.dao.hib.AbstractHibernateDaoImpl
              extended by ar.com.jiji.kaya.dao.hib.HibernateCRUDPageableDaoImpl<User>
                  extended by ar.com.jiji.kaya.dao.hib.UserDaoImpl
All Implemented Interfaces:
CRUDDAO<User>, CRUDPageableDAO<User>, PageableTableDAO<User>, UserDao, org.springframework.beans.factory.InitializingBean

public class UserDaoImpl
extends HibernateCRUDPageableDaoImpl<User>
implements UserDao

Author:
lparra

Field Summary
 
Fields inherited from class org.springframework.dao.support.DaoSupport
logger
 
Constructor Summary
UserDaoImpl()
           
 
Method Summary
 boolean authenticate(java.lang.String username, java.lang.String password)
          Valida que los datos de login de un usuario son correctos.Termina llamando a findByCredentials(String, String).
 User findByCredentials(java.lang.String username, java.lang.String password)
          Valida los datos del usuario y si existe devuelve la instancia.
 
Methods inherited from class ar.com.jiji.kaya.dao.hib.HibernateCRUDPageableDaoImpl
getAll, getPage, getPage, getSize, getSize, load, remove, save
 
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, closeSessionIfNecessary, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
 
Methods inherited from class org.springframework.dao.support.DaoSupport
afterPropertiesSet, initDao
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ar.com.jiji.kaya.dao.PageableTableDAO
getPage, getPage, getSize, getSize
 
Methods inherited from interface ar.com.jiji.kaya.dao.CRUDDAO
getAll, load, remove, save
 

Constructor Detail

UserDaoImpl

public UserDaoImpl()
Method Detail

authenticate

public boolean authenticate(java.lang.String username,
                            java.lang.String password)
Description copied from interface: UserDao
Valida que los datos de login de un usuario son correctos.Termina llamando a findByCredentials(String, String).

Specified by:
authenticate in interface UserDao
password - El password (en el formato que este almacenado, no se realiza ninguna codificacion ni encriptado en este metodo).
Returns:
true Si existe un usuario con los datos pasados como argumentos.
See Also:
UserDao.findByCredentials(String, String)

findByCredentials

public User findByCredentials(java.lang.String username,
                              java.lang.String password)
Description copied from interface: UserDao
Valida los datos del usuario y si existe devuelve la instancia.

Specified by:
findByCredentials in interface UserDao
Returns:
La instancia del usuario si concuerda username/password, null en otro caso.


Copyright © 2006 Kaya. All Rights Reserved.