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 Summary
Fields Modifier and Type Field Description ConfluenceUserDaoconfluenceUserDao
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractUserEntityFinder(ConfluenceUserDao confluenceUserDao)
-
Method Summary
All 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.ExistingEntityFinder
getSupportedClass, isSupportedJobSource
-
-
-
-
Field Detail
-
confluenceUserDao
public final ConfluenceUserDao confluenceUserDao
-
-
Constructor Detail
-
AbstractUserEntityFinder
protected AbstractUserEntityFinder(ConfluenceUserDao confluenceUserDao)
-
-
Method Detail
-
findExistingObjectIds
public 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 interfaceExistingEntityFinder- Parameters:
objects- collection of imported objects- Returns:
- found users
-
doSecondStageFind
public 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.
-
-