|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.dao.support.DaoSupport
org.springframework.orm.hibernate3.support.HibernateDaoSupport
org.itracker.persistence.dao.BaseHibernateDAOImpl<User>
org.itracker.persistence.dao.UserDAOImpl
public class UserDAOImpl
| Field Summary |
|---|
| Fields inherited from class org.springframework.dao.support.DaoSupport |
|---|
logger |
| Constructor Summary | |
|---|---|
UserDAOImpl()
|
|
| Method Summary | |
|---|---|
List<User> |
findActive()
Finds all active users. |
List<User> |
findAll()
Finds all users. |
User |
findByLogin(String login)
Finds a user by login. |
User |
findByPrimaryKey(Integer userId)
Finds the users with the given primary key. |
List<User> |
findByRegistrationType(int registrationType)
Finds users with the given registration type. |
List<User> |
findByStatus(int status)
Finds users with the given status. |
List<User> |
findSuperUsers()
Finds all super users. |
List<User> |
findUsersForProjectByAllPermissionTypeList(Integer projectID,
Integer[] permissionTypes)
|
Map<Integer,Set<PermissionType>> |
getUsersMapOfProjectsAndPermissionTypes(User user)
Searches all permissions for the given user and sorts it by project. |
| Methods inherited from class org.itracker.persistence.dao.BaseHibernateDAOImpl |
|---|
delete, detach, merge, refresh, save, saveOrUpdate |
| Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport |
|---|
checkDaoConfig, 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 org.itracker.persistence.dao.BaseDAO |
|---|
delete, detach, merge, refresh, save, saveOrUpdate |
| Constructor Detail |
|---|
public UserDAOImpl()
| Method Detail |
|---|
public User findByPrimaryKey(Integer userId)
UserDAO
findByPrimaryKey in interface UserDAOuserId - ID of the user to retrieve
public User findByLogin(String login)
UserDAO
findByLogin in interface UserDAOlogin - login name of the user to find
public List<User> findAll()
UserDAO
findAll in interface UserDAOpublic List<User> findActive()
UserDAO
findActive in interface UserDAOpublic List<User> findByStatus(int status)
UserDAO
findByStatus in interface UserDAOstatus - status code
public List<User> findSuperUsers()
UserDAO
findSuperUsers in interface UserDAOpublic List<User> findByRegistrationType(int registrationType)
UserDAO
findByRegistrationType in interface UserDAOpublic Map<Integer,Set<PermissionType>> getUsersMapOfProjectsAndPermissionTypes(User user)
HashMap returned has the project ids as key (Integer)
and a HashSet as values. The HashSet holds a set of
string representation of the permission
getUsersMapOfProjectsAndPermissionTypes in interface UserDAOuser - The user of interestrequestSource - requested by
public List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID,
Integer[] permissionTypes)
findUsersForProjectByAllPermissionTypeList in interface UserDAO
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||