Class LabelFinder
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.LabelFinder
-
- All Implemented Interfaces:
ExistingEntityFinder
public class LabelFinder extends Object implements ExistingEntityFinder
Finds existing labels (on xml restore). This finder must not be created and used for site imports because all labels should be persisted as is.- Since:
- 8.1.0
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
log
-
Constructor Summary
Constructors Constructor Description LabelFinder(RestoreDao restoreDao)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<ImportedObjectV2,Object>
findExistingObjectIds(Collection<ImportedObjectV2> importedLabels)
Find existing labels.Class<?>
getSupportedClass()
boolean
isSupportedJobSource(JobSource jobSource)
-
-
-
Constructor Detail
-
LabelFinder
public LabelFinder(RestoreDao restoreDao)
-
-
Method Detail
-
findExistingObjectIds
public Map<ImportedObjectV2,Object> findExistingObjectIds(Collection<ImportedObjectV2> importedLabels)
Find existing labels.- Specified by:
findExistingObjectIds
in interfaceExistingEntityFinder
- Parameters:
importedLabels
- collection of imported labels- Returns:
- found label ids, they key is the imported object, the value is the label id
-
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)
- Specified by:
isSupportedJobSource
in interfaceExistingEntityFinder
- Returns:
- the JobSource this finder accepts
-
-