Class SSCConfigurationOrderEntryMapper
java.lang.Object
de.hybris.platform.sap.productconfig.cpiorderexchange.ssc.service.impl.SSCConfigurationOrderEntryMapper
- All Implemented Interfaces:
ConfigurationOrderEntryMapper
public class SSCConfigurationOrderEntryMapper
extends Object
implements ConfigurationOrderEntryMapper
Mapper service for mapping the external configuration to SCPI outbound format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Stringprotected ExternalConfigurationParserprotected voidbooleanProvides information whether call to this mapper is requiredprotected voidmapConfigConditions(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_price_key_seq sourceConditions, String entryNumber) protected voidmapConfigHierarchies(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_part_seq sourceItems, String entryNumber) protected voidmapConfigInstances(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_inst_seq sourceItems, String entryNumber) intmapConfiguration(AbstractOrderEntryModel entry, SAPCpiOutboundOrderModel orderModel, String entryNumber) Enriches the order with the configuration details of the given order entryprotected voidmapConfigurationHeader(com.sap.sce.kbrt.ext_configuration externalConfiguration, SAPCpiOutboundOrderModel orderModel, String entryNumber) protected voidmapConfigValues(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_cstic_val_seq sourceValues, String entryNumber) protected com.sap.sce.kbrt.ext_configurationvoidsetExternalConfigurationParser(ExternalConfigurationParser externalConfigurationParser)
-
Constructor Details
-
SSCConfigurationOrderEntryMapper
public SSCConfigurationOrderEntryMapper()
-
-
Method Details
-
isMapperApplicable
Description copied from interface:ConfigurationOrderEntryMapperProvides information whether call to this mapper is required- Specified by:
isMapperApplicablein interfaceConfigurationOrderEntryMapper- Parameters:
entry- order entry to be checked- Returns:
- whether call to this mapper is necessary
-
mapConfiguration
public int mapConfiguration(AbstractOrderEntryModel entry, SAPCpiOutboundOrderModel orderModel, String entryNumber) Description copied from interface:ConfigurationOrderEntryMapperEnriches the order with the configuration details of the given order entry- Specified by:
mapConfigurationin interfaceConfigurationOrderEntryMapper- Parameters:
entry- order entryorderModel- outbound order model to be enrichedentryNumber- entry number for the outbound order entry- Returns:
- number of instances in the bom of the configurable product
-
mapConfigConditions
protected void mapConfigConditions(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_price_key_seq sourceConditions, String entryNumber) -
mapConfigValues
protected void mapConfigValues(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_cstic_val_seq sourceValues, String entryNumber) -
mapConfigHierarchies
protected void mapConfigHierarchies(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_part_seq sourceItems, String entryNumber) -
mapConfigurationHeader
protected void mapConfigurationHeader(com.sap.sce.kbrt.ext_configuration externalConfiguration, SAPCpiOutboundOrderModel orderModel, String entryNumber) -
mapConfigInstances
protected void mapConfigInstances(SAPCpiOutboundOrderModel orderModel, com.sap.sce.kbrt.cfg_ext_inst_seq sourceItems, String entryNumber) -
readExternalConfigFromEntry
protected com.sap.sce.kbrt.ext_configuration readExternalConfigFromEntry(AbstractOrderEntryModel entry) -
extractConfigurationFromXml
-
initProductConfigSets
-
setExternalConfigurationParser
-
getExternalConfigurationParser
-