Class CanonicalUsersByEmailFinder

java.lang.Object
com.atlassian.crowd.manager.application.CanonicalUsersByEmailFinder

public class CanonicalUsersByEmailFinder extends Object
Finds canonical users that have a provided email address.

This class is a workaround for KRAK-3542. One cannot simply use ApplicationService.searchUsers(com.atlassian.crowd.model.application.Application, com.atlassian.crowd.search.query.entity.EntityQuery<T>) because it can return non-canonical users.

  • Constructor Details

    • CanonicalUsersByEmailFinder

      public CanonicalUsersByEmailFinder(ApplicationService applicationService)
  • Method Details

    • findCanonicalUsersByEmail

      public List<String> findCanonicalUsersByEmail(Application application, String email)
      Returns canonical users that have a provided email address.
      Parameters:
      application - application
      email - email address
      Returns:
      users sharing provided email address, empty list if no users found