Class AbstractUserEntityFinder
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.AbstractUserEntityFinder
- All Implemented Interfaces:
- ExistingEntityFinder
- Direct Known Subclasses:
- ConfluenceCloudUserFinder,- ConfluenceUserFinder
Responsible for finding users by user keys - if not found try second stage finder. See 
ConfluenceCloudUserFinder
 and ConfluenceUserFinder.
 This finder must not be created and used for site imports because all users should be persisted as is.- Since:
- 8.3.0
- 
Field SummaryFields
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedAbstractUserEntityFinder(ConfluenceUserDao confluenceUserDao) 
- 
Method SummaryModifier and TypeMethodDescriptionabstract Map<ImportedObjectV2, com.atlassian.sal.api.user.UserKey> doSecondStageFind(List<ImportedObjectV2> importedObjectPartition) findExistingObjectIds(Collection<ImportedObjectV2> objects) Finds users.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.ExistingEntityFindergetSupportedClass, isSupportedJobSource
- 
Field Details- 
confluenceUserDao
 
- 
- 
Constructor Details- 
AbstractUserEntityFinder
 
- 
- 
Method Details- 
findExistingObjectIdsFinds users. It reuses code fromConfluenceUserPersisterNote that for spaces imported from Cloud, another finder should be used:ConfluenceCloudUserFinder- Specified by:
- findExistingObjectIdsin interface- ExistingEntityFinder
- Parameters:
- objects- collection of imported objects
- Returns:
- found users
 
- 
doSecondStageFindpublic abstract Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey> doSecondStageFind(List<ImportedObjectV2> importedObjectPartition) - Parameters:
- importedObjectPartition-
- Returns:
- Map of import objects and their UserKeys if they were found.
 
 
-