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 Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
AbstractUserEntityFinder
(ConfluenceUserDao confluenceUserDao) -
Method Summary
Modifier 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.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 Details
-
confluenceUserDao
-
-
Constructor Details
-
AbstractUserEntityFinder
-
-
Method Details
-
findExistingObjectIds
Finds users. It reuses code fromConfluenceUserPersister
Note that for spaces imported from Cloud, another finder should be used:ConfluenceCloudUserFinder
- Specified by:
findExistingObjectIds
in 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.
-