Class PluginProvidedExistingEntityFinder
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.PluginProvidedExistingEntityFinder
- All Implemented Interfaces:
ExistingEntityFinder
This will allow plugin to find existing id of an object it is interested.
Noted: Because of the current limitation there is only 1 ExistingEntityFinder for 1 type. More info could be seen in
ExistingEntityFindersProvider
- Since:
- 8.3.0
-
Constructor Summary
ConstructorsConstructorDescriptionPluginProvidedExistingEntityFinder
(PluginExistingEntityFinderModuleDescriptor pluginExistingEntityFinderModuleDescriptor) -
Method Summary
Modifier and TypeMethodDescriptionfindExistingObjectIds
(Collection<ImportedObjectV2> objects) Finds already existing objects in the database.Class<?>
boolean
isSupportedJobSource
(JobSource jobSource)
-
Constructor Details
-
PluginProvidedExistingEntityFinder
public PluginProvidedExistingEntityFinder(PluginExistingEntityFinderModuleDescriptor pluginExistingEntityFinderModuleDescriptor)
-
-
Method Details
-
findExistingObjectIds
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
- Specified by:
getSupportedClass
in interfaceExistingEntityFinder
- Returns:
- the entity class that is processed by this finder
-
isSupportedJobSource
- Specified by:
isSupportedJobSource
in interfaceExistingEntityFinder
- Returns:
- the JobSource this finder accepts
-