Class DefaultIntegrationObjectConversionService
java.lang.Object
de.hybris.platform.integrationservices.service.impl.DefaultIntegrationObjectConversionService
- All Implemented Interfaces:
IntegrationObjectConversionService
public class DefaultIntegrationObjectConversionService
extends Object
implements IntegrationObjectConversionService
The default implementation of IntegrationObjectConversionService.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ItemModel itemModel, IntegrationObjectDescriptor ioDescriptor) Converts an item model to aMap.Convert the item model to a Map<String,Object> which is representation of the Integration Object.convert(ItemToMapConversionContext context) Converts a context object to aMap.protected IntegrationObjectDescriptorfindIntegrationObjectDescriptor(String integrationObjectCode) protected ItemToMapConversionContextprotected DescriptorFactoryprotected IntegrationObjectServiceprotected Converter<ItemToMapConversionContext,Map<String, Object>> voidsetDescriptorFactory(DescriptorFactory descriptorFactory) voidsetIntegrationObjectService(IntegrationObjectService integrationObjectService) voidsetItemToIntegrationObjectMapConverter(Converter<ItemToMapConversionContext, Map<String, Object>> itemToIntegrationObjectMapConverter)
-
Constructor Details
-
DefaultIntegrationObjectConversionService
public DefaultIntegrationObjectConversionService()
-
-
Method Details
-
convert
Description copied from interface:IntegrationObjectConversionServiceConvert the item model to a Map<String,Object> which is representation of the Integration Object.- Specified by:
convertin interfaceIntegrationObjectConversionService- Parameters:
itemModel- the item modelintegrationObjectCode- the integration object code- Returns:
- a Map<String,Object> representation of the Integration Object.
-
convert
Description copied from interface:IntegrationObjectConversionServiceConverts a context object to aMap.- Specified by:
convertin interfaceIntegrationObjectConversionService- Parameters:
context- a context containing the data item to convert and the integration object item model describing structure of the conversion result.- Returns:
- a Map<String,Object> representation of the data item.
-
convert
Description copied from interface:IntegrationObjectConversionServiceConverts an item model to aMap.- Specified by:
convertin interfaceIntegrationObjectConversionService- Parameters:
itemModel- an item model to convertioDescriptor- an integration object descriptor- Returns:
- a Map<String,Object> representation of the item model
-
getConversionContext
protected ItemToMapConversionContext getConversionContext(ItemModel item, IntegrationObjectDescriptor io) -
findIntegrationObjectDescriptor
-
getItemToIntegrationObjectMapConverter
protected Converter<ItemToMapConversionContext,Map<String, getItemToIntegrationObjectMapConverter()Object>> -
setItemToIntegrationObjectMapConverter
public void setItemToIntegrationObjectMapConverter(Converter<ItemToMapConversionContext, Map<String, Object>> itemToIntegrationObjectMapConverter) -
getIntegrationObjectService
-
setIntegrationObjectService
-
getDescriptorFactory
-
setDescriptorFactory
-