org.squashtest.tm.service.internal.repository
Interface UserDao

All Superinterfaces:
EntityDao<org.squashtest.tm.domain.users.User>, GenericDao<org.squashtest.tm.domain.users.User>
All Known Implementing Classes:
HibernateUserDao

public interface UserDao
extends EntityDao<org.squashtest.tm.domain.users.User>


Method Summary
 void checkLoginAvailability(String login)
          checks if a user already exist with the same login in the database.
 int countAllTeamMembers(long teamId)
           
 List<org.squashtest.tm.domain.users.User> findAllActiveUsersOrderedByLogin()
           
 List<org.squashtest.tm.domain.users.User> findAllNonTeamMembers(long teamId)
           
 List<org.squashtest.tm.domain.users.User> findAllTeamMembers(long teamId, org.squashtest.tm.core.foundation.collection.PagingAndSorting paging, org.squashtest.tm.core.foundation.collection.Filtering filtering)
           
 List<org.squashtest.tm.domain.users.User> findAllUsers(org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter, org.squashtest.tm.core.foundation.collection.Filtering filter)
           
 List<org.squashtest.tm.domain.users.User> findAllUsersOrderedByLogin()
           
 org.squashtest.tm.domain.users.User findUserByLogin(String login)
           
 List<org.squashtest.tm.domain.users.User> findUsersByLoginList(List<String> loginList)
           
 void unassignUserFromAllTestPlan(long userId)
           
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.EntityDao
findAll, findAllByIds, findById
 
Methods inherited from interface org.squashtest.tm.service.internal.repository.GenericDao
clearFromCache, clearFromCache, flush, persist, persist, remove, removeAll
 

Method Detail

findAllUsersOrderedByLogin

List<org.squashtest.tm.domain.users.User> findAllUsersOrderedByLogin()

findAllActiveUsersOrderedByLogin

List<org.squashtest.tm.domain.users.User> findAllActiveUsersOrderedByLogin()

findAllUsers

List<org.squashtest.tm.domain.users.User> findAllUsers(org.squashtest.tm.core.foundation.collection.PagingAndSorting sorter,
                                                       org.squashtest.tm.core.foundation.collection.Filtering filter)

findUserByLogin

org.squashtest.tm.domain.users.User findUserByLogin(String login)

findUsersByLoginList

List<org.squashtest.tm.domain.users.User> findUsersByLoginList(List<String> loginList)

checkLoginAvailability

void checkLoginAvailability(String login)
checks if a user already exist with the same login in the database.
If so, raise a LoginAlreadyExistsException

Parameters:
login - *

findAllNonTeamMembers

List<org.squashtest.tm.domain.users.User> findAllNonTeamMembers(long teamId)

findAllTeamMembers

List<org.squashtest.tm.domain.users.User> findAllTeamMembers(long teamId,
                                                             org.squashtest.tm.core.foundation.collection.PagingAndSorting paging,
                                                             org.squashtest.tm.core.foundation.collection.Filtering filtering)

countAllTeamMembers

int countAllTeamMembers(long teamId)

unassignUserFromAllTestPlan

void unassignUserFromAllTestPlan(long userId)


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