Class AbstractUserEntityFinder
- java.lang.Object
- 
- com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.AbstractUserEntityFinder
 
- 
- All Implemented Interfaces:
- ExistingEntityFinder
 - Direct Known Subclasses:
- ConfluenceCloudUserFinder,- ConfluenceUserFinder
 
 public abstract class AbstractUserEntityFinder extends Object implements ExistingEntityFinder Responsible for finding users by user keys - if not found try second stage finder. SeeConfluenceCloudUserFinderandConfluenceUserFinder. 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 Modifier and Type Field Description ConfluenceUserDaoconfluenceUserDao
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedAbstractUserEntityFinder(ConfluenceUserDao confluenceUserDao)
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Map<ImportedObjectV2,com.atlassian.sal.api.user.UserKey>doSecondStageFind(List<ImportedObjectV2> importedObjectPartition)Map<ImportedObjectV2,Object>findExistingObjectIds(Collection<ImportedObjectV2> objects)Finds users.- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.ExistingEntityFindergetSupportedClass, isSupportedJobSource
 
- 
 
- 
- 
- 
Field Detail- 
confluenceUserDaopublic final ConfluenceUserDao confluenceUserDao 
 
- 
 - 
Constructor Detail- 
AbstractUserEntityFinderprotected AbstractUserEntityFinder(ConfluenceUserDao confluenceUserDao) 
 
- 
 - 
Method Detail- 
findExistingObjectIdspublic Map<ImportedObjectV2,Object> findExistingObjectIds(Collection<ImportedObjectV2> objects) Finds 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.
 
 
- 
 
-