Interface UserService


public interface UserService
User Service
  • Method Summary

    Modifier and Type
    Method
    Description
    List<com.atlassian.jira.user.ApplicationUser>
    getAllUsers(com.atlassian.jira.user.ApplicationUser applicationUser, boolean includeInactive)
    Return all the users with user as context
    getLastVisitDate(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter)
    Return the last date when the filter was visited
    com.atlassian.jira.user.ApplicationUser
    Return the user by a specific key without checked permission
    com.atlassian.jira.user.ApplicationUser
    Return the user by a specific name without checked permission
    com.atlassian.jira.user.ApplicationUser
    getUserByName(String name, com.atlassian.jira.user.ApplicationUser contextUser)
    Return the user by a specific name with checked permission
    lastFilters(com.atlassian.jira.user.ApplicationUser applicationUser)
    Returns the user views sorted by most visited
    void
    visitFilter(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter)
    Increment the visits counter for this view
  • Method Details

    • visitFilter

      void visitFilter(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter)
      Increment the visits counter for this view
      Parameters:
      applicationUser - the user
      filter - the visited filter
    • lastFilters

      List<Filter> lastFilters(com.atlassian.jira.user.ApplicationUser applicationUser)
      Returns the user views sorted by most visited
      Parameters:
      applicationUser - the user
      Returns:
      the filter
    • getLastVisitDate

      Date getLastVisitDate(com.atlassian.jira.user.ApplicationUser applicationUser, Filter filter)
      Return the last date when the filter was visited
      Parameters:
      applicationUser -
      filter -
      Returns:
      Date
    • getUserByName

      com.atlassian.jira.user.ApplicationUser getUserByName(String name)
      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

      com.atlassian.jira.user.ApplicationUser getUserByKey(String key)
      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