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
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
ConstructorsConstructorDescriptionConfluenceCloudUserFinder
(ConfluenceUserDao confluenceUserDao, com.atlassian.crowd.embedded.api.CrowdDirectoryService directoryService, com.atlassian.crowd.embedded.spi.UserDao embeddedCrowdUserDao) -
Method Summary
Modifier and TypeMethodDescriptionMap<ImportedObjectV2,
com.atlassian.sal.api.user.UserKey> doSecondStageFind
(List<ImportedObjectV2> importedObjectPartition) Class<?>
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 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 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
- Returns:
- the entity class that is processed by this finder
-
isSupportedJobSource
- Returns:
- the JobSource this finder accepts
-