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, saveOrUpdate
delete, detach, merge, refresh, save, saveOrUpdate
public User findByPrimaryKey(Integer userId)
UserDAO
findByPrimaryKey
in interface UserDAO
userId
- ID of the user to retrievepublic User findByLogin(String login)
UserDAO
findByLogin
in interface UserDAO
login
- login name of the user to findpublic List<User> findActive()
UserDAO
findActive
in interface UserDAO
public List<User> findByStatus(int status)
UserDAO
findByStatus
in interface UserDAO
status
- status codepublic List<User> findSuperUsers()
UserDAO
findSuperUsers
in interface UserDAO
public List<User> findByRegistrationType(int registrationType)
UserDAO
findByRegistrationType
in interface UserDAO
public 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 UserDAO
user
- The user of interestpublic List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, Integer[] permissionTypes)
findUsersForProjectByAllPermissionTypeList
in interface UserDAO
public List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, PermissionType[] permissionTypes)
UserDAO
findUsersForProjectByAllPermissionTypeList
in interface UserDAO
projectID
- the project IDpermissionTypes
- array of permission typesCopyright © 2002–2019 itracker. All rights reserved.