Class DuplicatedUsersToDirectoriesMapping

java.lang.Object
com.atlassian.jira.user.util.DuplicatedUsersToDirectoriesMapping

@Immutable @PublicApi public class DuplicatedUsersToDirectoriesMapping extends Object
Container class used to hold a mapping of duplicated users to the directories they have accounts in. Duplicated means that the user has an account in more than one directory and either more than one account is active or the only active account does not belong to the directory with the highest priority. Use the EMPTY public static member if you want to retrieve an empty instance.
Since:
8.19
  • Field Details

  • Method Details

    • userCount

      public int userCount()
      Returns the number of users who have duplicated accounts.
      Returns:
      count of duplicated users.
      Since:
      8.19
    • getDirectoriesForUser

      Returns the list of directories where the duplicated user has an account. If there are none, an empty list is returned. Returned objects also contain information on whether the user account is active.
      Returns:
      List of directories the user has accounts in.
      Since:
      8.19
    • getUsernames

      public Set<String> getUsernames()
      Returns the set of usernames present in the container.
      Returns:
      Set of usernames.
      Since:
      8.19