java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.AbstractUserEntityFinder
com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.ConfluenceCloudUserFinder
All Implemented Interfaces:
ExistingEntityFinder

public class ConfluenceCloudUserFinder extends AbstractUserEntityFinder
Finds users by emails. Used for importing spaces from Confluence Cloud. This finder must not be created and used for site imports because all users should be persisted as is.
Since:
8.3.0
  • Constructor Details

    • ConfluenceCloudUserFinder

      public ConfluenceCloudUserFinder(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, com.atlassian.crowd.embedded.spi.UserDao embeddedCrowdUserDao)
  • Method Details

    • doSecondStageFind

      public Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey> doSecondStageFind(List<ImportedObjectV2> importedObjectPartition)
      Specified by:
      doSecondStageFind in class AbstractUserEntityFinder
      Returns:
      Map of import objects and their UserKeys if they were found.
    • getUsersByEmails

      public Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey> getUsersByEmails(List<ImportedObjectV2> importedObjects)
    • getSupportedClass

      public Class<?> getSupportedClass()
      Returns:
      the entity class that is processed by this finder
    • isSupportedJobSource

      public boolean isSupportedJobSource(JobSource jobSource)
      Returns:
      the JobSource this finder accepts