Class ConfluenceCloudUserFinder
- 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
-
-
Field Summary
-
Fields inherited from class com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.AbstractUserEntityFinder
confluenceUserDao
-
-
Constructor Summary
Constructors Constructor Description ConfluenceCloudUserFinder(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, com.atlassian.crowd.embedded.spi.UserDao embeddedCrowdUserDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey>
doSecondStageFind(List<ImportedObjectV2> importedObjectPartition)
Class<?>
getSupportedClass()
Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey>
getUsersByEmails(List<ImportedObjectV2> importedObjects)
boolean
isSupportedJobSource(JobSource jobSource)
-
Methods inherited from class com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.AbstractUserEntityFinder
findExistingObjectIds
-
-
-
-
Constructor Detail
-
ConfluenceCloudUserFinder
public ConfluenceCloudUserFinder(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, com.atlassian.crowd.embedded.spi.UserDao embeddedCrowdUserDao)
-
-
Method Detail
-
doSecondStageFind
public Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey> doSecondStageFind(List<ImportedObjectV2> importedObjectPartition)
- Specified by:
doSecondStageFind
in classAbstractUserEntityFinder
- 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
-
-