Class LabelFinder
java.lang.Object
com.atlassian.confluence.impl.backuprestore.restore.idmapping.finders.LabelFinder
- All Implemented Interfaces:
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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindExistingObjectIds
(Collection<ImportedObjectV2> importedLabels) Find existing labels.Class<?>
boolean
isSupportedJobSource
(JobSource jobSource)
-
Field Details
-
log
public static final org.slf4j.Logger log
-
-
Constructor Details
-
LabelFinder
-
-
Method Details
-
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
- 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
-