Class AbstractExportConfigurationDecorator
java.lang.Object
de.hybris.platform.odata2services.export.impl.AbstractExportConfigurationDecorator
- All Implemented Interfaces:
ExportConfigurationDecorator
- Direct Known Subclasses:
DefaultIntegrationObjectDecorator,DefaultOutboundChannelConfigurationDecorator,DefaultScriptDecorator
public abstract class AbstractExportConfigurationDecorator
extends Object
implements ExportConfigurationDecorator
The base implementation of the
ExportConfigurationDecorator to be extended for reuse.-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedAbstractExportConfigurationDecorator(@NotNull DescriptorFactory descriptorFactory, @NotNull IntegrationObjectConversionService conversionService, @NotNull IntegrationObjectService integrationObjectService, @NotNull EntitySetNameGenerator nameGenerator) Constructor injects dependencies for reuse. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringconstructPayload(ItemModel itemModel, String ioCode) Constructs the integration object payload after filtering sensitive information if the filter is provided.protected StringconstructRequestUrl(String integrationObjectCode, String entitySet) Constructs request URL.protected StringexportEndpoint(String integrationObject, String entitySet) Constructs export endpointextractProperties(String requestBody, String path) Extracts a property list from an export entity request body.protected StringextractProperty(String requestBody, String path) Extracts a property from an export entity request body.protected IntegrationObjectServicevoidsetExportConfigurationFilter(ExportConfigurationFilter exportConfigurationFilter) Set export configuration filter.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.hybris.platform.odata2services.export.ExportConfigurationDecorator
decorate
-
Constructor Details
-
AbstractExportConfigurationDecorator
protected AbstractExportConfigurationDecorator(@NotNull @NotNull DescriptorFactory descriptorFactory, @NotNull @NotNull IntegrationObjectConversionService conversionService, @NotNull @NotNull IntegrationObjectService integrationObjectService, @NotNull @NotNull EntitySetNameGenerator nameGenerator) Constructor injects dependencies for reuse.- Parameters:
descriptorFactory- to create the integration object descriptorconversionService- to convert the integration objectintegrationObjectService- to find the integration objectnameGenerator- to generate the entity set name
-
-
Method Details
-
setExportConfigurationFilter
Set export configuration filter.- Parameters:
exportConfigurationFilter- to filter sensitive information
-
constructPayload
Constructs the integration object payload after filtering sensitive information if the filter is provided.- Parameters:
itemModel- the integration object root item modelioCode- the integration object code- Returns:
- Json string of the integration object
-
extractProperty
Extracts a property from an export entity request body.- Parameters:
requestBody- request bodypath- property path- Returns:
- property value
-
extractProperties
Extracts a property list from an export entity request body.- Parameters:
requestBody- request bodypath- property path- Returns:
- list of property values
-
constructRequestUrl
Constructs request URL.- Parameters:
integrationObjectCode- integration object codeentitySet- entity set name- Returns:
- string representation of the URl
-
exportEndpoint
Constructs export endpoint- Parameters:
integrationObject- integration object codeentitySet- entity set name- Returns:
- endpoint
-
getIntegrationObjectService
-