Class DefaultExportConfigurationConverter
java.lang.Object
de.hybris.platform.odata2services.export.impl.DefaultExportConfigurationConverter
- All Implemented Interfaces:
org.springframework.core.convert.converter.Converter<ConfigurationBundleEntity,Set<ExportEntity>>
public class DefaultExportConfigurationConverter
extends Object
implements org.springframework.core.convert.converter.Converter<ConfigurationBundleEntity,Set<ExportEntity>>
The default export configuration converter.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultExportConfigurationConverter(@NotNull ExportConfigurationSearchService searchService, @NotNull DescriptorFactory descriptorFactory, @NotNull IntegrationObjectConversionService conversionService, @NotNull EntitySetNameGenerator nameGenerator) Instantiates a new export configuration conversion service. -
Method Summary
Modifier and TypeMethodDescriptionconvert(ConfigurationBundleEntity configurationBundleEntity) ConvertsConfigurationBundleEntityintoExportEntity.voidsetExportConfigurationFilter(ExportConfigurationFilter exportConfigurationFilter) Inject the filter service to filter out sensitive information from the exported configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.core.convert.converter.Converter
andThen
-
Constructor Details
-
DefaultExportConfigurationConverter
public DefaultExportConfigurationConverter(@NotNull @NotNull ExportConfigurationSearchService searchService, @NotNull @NotNull DescriptorFactory descriptorFactory, @NotNull @NotNull IntegrationObjectConversionService conversionService, @NotNull @NotNull EntitySetNameGenerator nameGenerator) Instantiates a new export configuration conversion service.- Parameters:
searchService- to search integration objectdescriptorFactory- to create integration object descriptorconversionService- to convert the integration object to a Map<String,Object>nameGenerator- to generate the entity set name
-
-
Method Details
-
convert
ConvertsConfigurationBundleEntityintoExportEntity.- Specified by:
convertin interfaceorg.springframework.core.convert.converter.Converter<ConfigurationBundleEntity,Set<ExportEntity>> - Parameters:
configurationBundleEntity- the configuration bundle entity to convert- Returns:
- the set export entity
Set<ExportEntity>
-
setExportConfigurationFilter
Inject the filter service to filter out sensitive information from the exported configuration.- Parameters:
exportConfigurationFilter- the default filter service implementation.
-