org.squashtest.csp.tm.internal.repository.hibernate
Class HibernateUserDao

java.lang.Object
  extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao<ENTITY_TYPE>
      extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao<User>
          extended by org.squashtest.csp.tm.internal.repository.hibernate.HibernateUserDao
All Implemented Interfaces:
EntityDao<User>, UserDao

@Repository
public class HibernateUserDao
extends HibernateEntityDao<User>
implements UserDao


Field Summary
 
Fields inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
entityType
 
Constructor Summary
HibernateUserDao()
           
 
Method Summary
 void checkLoginAvailability(String login)
          checks if a user already exist with the same login in the database.
 List<User> findAllUsersFiltered(org.squashtest.tm.core.foundation.collection.Paging filter)
           
 List<User> findAllUsersOrderedByLogin()
           
 User findUserByLogin(String login)
           
 List<User> findUsersByLoginList(List<String> idList)
           
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateEntityDao
findAll, findAllByIds, findById, flush, getIdPropertyName, persist, persist, remove
 
Methods inherited from class org.squashtest.csp.tm.internal.repository.hibernate.HibernateDao
currentSession, executeEntityNamedQuery, executeEntityNamedQuery, executeEntityNamedQuery, executeListNamedQuery, executeListNamedQuery, executeListNamedQuery, getEntity, persistEntity, removeEntity
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.squashtest.csp.tm.internal.repository.EntityDao
findAll, findAllByIds, findById, flush, persist, persist, remove
 

Constructor Detail

HibernateUserDao

public HibernateUserDao()
Method Detail

findAllUsersOrderedByLogin

public List<User> findAllUsersOrderedByLogin()
Specified by:
findAllUsersOrderedByLogin in interface UserDao
Returns:
users with all properties fetched, ordered by login

findAllUsersFiltered

public List<User> findAllUsersFiltered(org.squashtest.tm.core.foundation.collection.Paging filter)
Specified by:
findAllUsersFiltered in interface UserDao

findUserByLogin

public User findUserByLogin(String login)
Specified by:
findUserByLogin in interface UserDao

findUsersByLoginList

public List<User> findUsersByLoginList(List<String> idList)
Specified by:
findUsersByLoginList in interface UserDao

checkLoginAvailability

public void checkLoginAvailability(String login)
Description copied from interface: UserDao
checks if a user already exist with the same login in the database.
If so, raise a LoginAlreadyExistsException

Specified by:
checkLoginAvailability in interface UserDao
Parameters:
login - *


Copyright © 2010-2012 Henix, henix.fr. All Rights Reserved.