Interface UserService
public interface UserService
User Service
-
Method Summary
Modifier and TypeMethodDescriptionList<com.atlassian.jira.user.ApplicationUser>
getAllUsers
(com.atlassian.jira.user.ApplicationUser applicationUser, boolean includeInactive) Return all the users with user as contextgetLastVisitDate
(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter) Return the last date when the filter was visitedcom.atlassian.jira.user.ApplicationUser
getUserByKey
(String key) Return the user by a specific key without checked permissioncom.atlassian.jira.user.ApplicationUser
getUserByName
(String name) Return the user by a specific name without checked permissioncom.atlassian.jira.user.ApplicationUser
getUserByName
(String name, com.atlassian.jira.user.ApplicationUser contextUser) Return the user by a specific name with checked permissionlastFilters
(com.atlassian.jira.user.ApplicationUser applicationUser) Returns the user views sorted by most visitedvoid
visitFilter
(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter) Increment the visits counter for this view
-
Method Details
-
visitFilter
Increment the visits counter for this view- Parameters:
applicationUser
- the userfilter
- the visited filter
-
lastFilters
Returns the user views sorted by most visited- Parameters:
applicationUser
- the user- Returns:
- the filter
-
getLastVisitDate
Return the last date when the filter was visited- Parameters:
applicationUser
-filter
-- Returns:
- Date
-
getUserByName
Return the user by a specific name without checked permission- Parameters:
name
-- Returns:
- an user
-
getUserByName
com.atlassian.jira.user.ApplicationUser getUserByName(String name, com.atlassian.jira.user.ApplicationUser contextUser) Return the user by a specific name with checked permission- Parameters:
name
-contextUser
- an user to check permisison- Returns:
- an user
-
getUserByKey
Return the user by a specific key without checked permission- Parameters:
key
-- Returns:
- an user
-
getAllUsers
List<com.atlassian.jira.user.ApplicationUser> getAllUsers(@Nullable com.atlassian.jira.user.ApplicationUser applicationUser, boolean includeInactive) Return all the users with user as context- Returns:
- All the users
-