Class CrowdActiveUserHelper

java.lang.Object
com.atlassian.confluence.impl.user.crowd.CrowdActiveUserHelper

public final class CrowdActiveUserHelper extends Object
Utility class for managing and retrieving active user information from Crowd directories. This class interacts with Crowd's CrowdDirectoryService and DirectoryManager to fetch active and inactive user data, applying filters as needed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    CrowdActiveUserHelper(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.crowd.manager.directory.DirectoryManager crowdDirectoryManager)
    Constructs a new CrowdActiveUserHelper with the given Crowd services.
  • Method Summary

    Modifier and Type
    Method
    Description
    Retrieves a list of usernames of active users across all active directories.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • CrowdActiveUserHelper

      public CrowdActiveUserHelper(com.atlassian.crowd.embedded.api.CrowdDirectoryService crowdDirectoryService, com.atlassian.crowd.manager.directory.DirectoryManager crowdDirectoryManager)
      Constructs a new CrowdActiveUserHelper with the given Crowd services.
      Parameters:
      crowdDirectoryService - the service for interacting with Crowd directories
      crowdDirectoryManager - the manager for performing directory operations
  • Method Details

    • getActiveUserNames

      public List<String> getActiveUserNames()
      Retrieves a list of usernames of active users across all active directories.
      Returns:
      a list of active usernames