Class DefaultIntegrationObjectConversionService
- java.lang.Object
-
- de.hybris.platform.integrationservices.service.impl.DefaultIntegrationObjectConversionService
-
- All Implemented Interfaces:
IntegrationObjectConversionService
public class DefaultIntegrationObjectConversionService extends java.lang.Object implements IntegrationObjectConversionService
The default implementation of IntegrationObjectConversionService.
-
-
Constructor Summary
Constructors Constructor Description DefaultIntegrationObjectConversionService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.Object>convert(ItemModel itemModel, java.lang.String integrationObjectCode)Convert the item model to a Mapwhich is representation of the Integration Object. java.util.Map<java.lang.String,java.lang.Object>convert(ItemToMapConversionContext context)Converts a context object to aMap.protected IntegrationObjectDescriptorfindIntegrationObjectDescriptor(java.lang.String integrationObjectCode)protected ItemToMapConversionContextgetConversionContext(ItemModel item, IntegrationObjectDescriptor io)protected DescriptorFactorygetDescriptorFactory()protected IntegrationObjectServicegetIntegrationObjectService()protected Converter<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>>getItemToIntegrationObjectMapConverter()voidsetDescriptorFactory(DescriptorFactory descriptorFactory)voidsetIntegrationObjectService(IntegrationObjectService integrationObjectService)voidsetItemToIntegrationObjectMapConverter(Converter<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>> itemToIntegrationObjectMapConverter)
-
-
-
Method Detail
-
convert
public java.util.Map<java.lang.String,java.lang.Object> convert(ItemModel itemModel, java.lang.String integrationObjectCode)
Description copied from interface:IntegrationObjectConversionServiceConvert the item model to a Mapwhich is representation of the Integration Object. - Specified by:
convertin interfaceIntegrationObjectConversionService- Parameters:
itemModel- the item modelintegrationObjectCode- the integration object code- Returns:
- a Map
representation of the Integration Object.
-
convert
public java.util.Map<java.lang.String,java.lang.Object> convert(ItemToMapConversionContext context)
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
representation of the data item.
-
getConversionContext
protected ItemToMapConversionContext getConversionContext(ItemModel item, IntegrationObjectDescriptor io)
-
findIntegrationObjectDescriptor
protected IntegrationObjectDescriptor findIntegrationObjectDescriptor(java.lang.String integrationObjectCode)
-
getItemToIntegrationObjectMapConverter
protected Converter<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>> getItemToIntegrationObjectMapConverter()
-
setItemToIntegrationObjectMapConverter
public void setItemToIntegrationObjectMapConverter(Converter<ItemToMapConversionContext,java.util.Map<java.lang.String,java.lang.Object>> itemToIntegrationObjectMapConverter)
-
getIntegrationObjectService
protected IntegrationObjectService getIntegrationObjectService()
-
setIntegrationObjectService
public void setIntegrationObjectService(IntegrationObjectService integrationObjectService)
-
getDescriptorFactory
protected DescriptorFactory getDescriptorFactory()
-
setDescriptorFactory
public void setDescriptorFactory(DescriptorFactory descriptorFactory)
-
-