| Constructor | Description |
|---|---|
UserDAOImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
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) |
|
List<User> |
findUsersForProjectByAllPermissionTypeList(Integer projectID,
PermissionType[] permissionTypes) |
Finds all users assigned to a project having all of the given permissionTypes.
|
Map<Integer,Set<PermissionType>> |
getUsersMapOfProjectsAndPermissionTypes(User user) |
Searches all permissions for the given user and sorts it by project.
|
delete, detach, merge, refresh, save, saveOrUpdatedelete, detach, merge, refresh, save, saveOrUpdatepublic User findByPrimaryKey(Integer userId)
UserDAOfindByPrimaryKey in interface UserDAOuserId - ID of the user to retrievepublic User findByLogin(String login)
UserDAOfindByLogin in interface UserDAOlogin - login name of the user to findpublic List<User> findActive()
UserDAOfindActive in interface UserDAOpublic List<User> findByStatus(int status)
UserDAOfindByStatus in interface UserDAOstatus - status codepublic List<User> findSuperUsers()
UserDAOfindSuperUsers in interface UserDAOpublic List<User> findByRegistrationType(int registrationType)
UserDAOfindByRegistrationType 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 permissiongetUsersMapOfProjectsAndPermissionTypes in interface UserDAOuser - The user of interestpublic List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, Integer[] permissionTypes)
findUsersForProjectByAllPermissionTypeList in interface UserDAOpublic List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, PermissionType[] permissionTypes)
UserDAOfindUsersForProjectByAllPermissionTypeList in interface UserDAOprojectID - the project IDpermissionTypes - array of permission typesCopyright © 2002–2022 itracker. All rights reserved.