UserDAOImpl
public interface UserDAO extends BaseDAO<User>
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) |
Deprecated.
|
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) |
Finds of the given user the set of permission types for all projects
on which the user has permissions.
|
User findByPrimaryKey(Integer userId)
userId
- ID of the user to retrieveUser findByLogin(String login)
login
- login name of the user to findList<User> findActive()
List<User> findByStatus(int status)
status
- status codeList<User> findSuperUsers()
List<User> findByRegistrationType(int registrationType)
Map<Integer,Set<PermissionType>> getUsersMapOfProjectsAndPermissionTypes(User user)
List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, PermissionType[] permissionTypes)
projectID
- the project IDpermissionTypes
- array of permission types@Deprecated List<User> findUsersForProjectByAllPermissionTypeList(Integer projectID, Integer[] permissionTypes)
Copyright © 2002–2019 itracker. All rights reserved.