Class ImportedObjectV1ToV2Converter
- java.lang.Object
-
- com.atlassian.confluence.impl.backuprestore.restore.preprocessing.ImportedObjectV1ToV2Converter
-
- All Implemented Interfaces:
Function<ImportedObject,Optional<ImportedObjectV2>>
public class ImportedObjectV1ToV2Converter extends Object implements Function<ImportedObject,Optional<ImportedObjectV2>>
Converts legacy ImportedObject to the new ImportedObjectV2.
Before converting, it applies all the configured filters, so some objects would be skipped if they did not pass filters.
After conversion, it applies all preprocessors that modify/fixes some objects. Note that those preprocessors would also reject objects if they discover that they contain broken data and they can't apply their changes properly.
- Since:
- 8.1.0
-
-
Constructor Summary
Constructors Constructor Description ImportedObjectV1ToV2Converter(Collection<ImportedObjectFilter> filters, Collection<ImportedObjectPreprocessor> preprocessors, HibernateMetadataHelper hibernateMetadataHelper, EntityInfoSqlHelper entityInfoSqlHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<ImportedObjectV2>
apply(ImportedObject importedObject)
-
-
-
Constructor Detail
-
ImportedObjectV1ToV2Converter
public ImportedObjectV1ToV2Converter(Collection<ImportedObjectFilter> filters, Collection<ImportedObjectPreprocessor> preprocessors, HibernateMetadataHelper hibernateMetadataHelper, EntityInfoSqlHelper entityInfoSqlHelper)
-
-
Method Detail
-
apply
public Optional<ImportedObjectV2> apply(ImportedObject importedObject)
- Specified by:
apply
in interfaceFunction<ImportedObject,Optional<ImportedObjectV2>>
-
-