Class CompoundExistingEntityFinder
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.CompoundExistingEntityFinder
-
- All Implemented Interfaces:
ExistingEntityFinder
public class CompoundExistingEntityFinder extends Object implements ExistingEntityFinder
This is a class which could compound the result of multipleExistingEntityFinder
which has same supported class and same job source- Since:
- 8.3.0
-
-
Constructor Summary
Constructors Constructor Description CompoundExistingEntityFinder(List<ExistingEntityFinder> finderList)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ImportedObjectV2,Object>
findExistingObjectIds(Collection<ImportedObjectV2> objects)
Finds already existing objects in the database.List<ExistingEntityFinder>
getFinderList()
Class<?>
getSupportedClass()
boolean
isSupportedJobSource(JobSource jobSource)
All inner finderList must support same supported jobSource
-
-
-
Constructor Detail
-
CompoundExistingEntityFinder
public CompoundExistingEntityFinder(List<ExistingEntityFinder> finderList)
-
-
Method Detail
-
getFinderList
public List<ExistingEntityFinder> getFinderList()
-
findExistingObjectIds
public Map<ImportedObjectV2,Object> findExistingObjectIds(Collection<ImportedObjectV2> objects)
Description copied from interface:ExistingEntityFinder
Finds already existing objects in the database.- Specified by:
findExistingObjectIds
in interfaceExistingEntityFinder
- Parameters:
objects
- collection of imported objects- Returns:
- map where key is the importing object and value is the id of the alredy existing object.
-
getSupportedClass
public Class<?> getSupportedClass()
- Specified by:
getSupportedClass
in interfaceExistingEntityFinder
- Returns:
- the entity class that is processed by this finder
-
isSupportedJobSource
public boolean isSupportedJobSource(JobSource jobSource)
All inner finderList must support same supported jobSource- Specified by:
isSupportedJobSource
in interfaceExistingEntityFinder
- Parameters:
jobSource
-- Returns:
-
-