Class DefaultCpqOrderEntryMapper
java.lang.Object
de.hybris.platform.cpq.productconfig.orderexchange.impl.DefaultCpqOrderEntryMapper
- All Implemented Interfaces:
CpqOrderEntryMapper
Default implementation of CpqOrderEntryMapper.
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultCpqOrderEntryMapper(ConfigurationService cpqService, ConfigurationServiceLayerHelper serviceLayerHelper, int subItemsSpacing) Constructor that gets the mandatory beans injected -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcalculateLineItemQuantity(SAPCpiOutboundOrderItemModel outboundItem, ConfigurationSummaryLineItemData summaryLineItem) protected ConfigurationServiceprotected ConfigurationServiceLayerHelperprotected StringincrementEntryNumber(String rootEntryNumber, int currentIncrement) booleanProvides information whether call to this mapper is requiredprotected booleanisMappingNeeded(ConfigurationSummaryLineItemData summaryLineItem) mapCPQLineItems(AbstractOrderEntryModel entry, SAPCpiOutboundOrderItemModel outboundItem) Enriches the order with the cpq details of the given order entryprotected SAPCpiOutboundOrderItemModelmapSummaryLineItem(ConfigurationSummaryLineItemData summaryLineItem, SAPCpiOutboundOrderItemModel outboundItem, int currentIncrement) protected voidmapSummaryLineItems(List<SAPCpiOutboundOrderItemModel> cpqLineItems, ConfigurationSummaryData configurationSummary, SAPCpiOutboundOrderItemModel outboundItem) voidretrieveCPQLineItems(AbstractOrderEntryModel entry, SAPCpiOutboundOrderItemModel outboundItem, List<SAPCpiOutboundOrderItemModel> cpqLineItems)
-
Constructor Details
-
DefaultCpqOrderEntryMapper
public DefaultCpqOrderEntryMapper(ConfigurationService cpqService, ConfigurationServiceLayerHelper serviceLayerHelper, int subItemsSpacing) Constructor that gets the mandatory beans injected- Parameters:
cpqService- configuration serviceserviceLayerHelper- service layer helpersubItemsSpacing- spacing for subItems
-
-
Method Details
-
mapCPQLineItems
public List<SAPCpiOutboundOrderItemModel> mapCPQLineItems(AbstractOrderEntryModel entry, SAPCpiOutboundOrderItemModel outboundItem) Description copied from interface:CpqOrderEntryMapperEnriches the order with the cpq details of the given order entry- Specified by:
mapCPQLineItemsin interfaceCpqOrderEntryMapper- Parameters:
entry- order entryoutboundItem- associated with order entry- Returns:
- additional outbound order items resulting from the cpq product
-
incrementEntryNumber
-
isMapperApplicable
Description copied from interface:CpqOrderEntryMapperProvides information whether call to this mapper is required- Specified by:
isMapperApplicablein interfaceCpqOrderEntryMapper- Parameters:
entry- order entry to be checked- Returns:
- whether call to this mapper is necessary
-
retrieveCPQLineItems
public void retrieveCPQLineItems(AbstractOrderEntryModel entry, SAPCpiOutboundOrderItemModel outboundItem, List<SAPCpiOutboundOrderItemModel> cpqLineItems) - Specified by:
retrieveCPQLineItemsin interfaceCpqOrderEntryMapper- Parameters:
entry- order entry for which line items should be retrievedoutboundItem- associated with order entrycpqLineItems- list that will be filled with additional outbound order items resulting from the cpq product
-
mapSummaryLineItems
protected void mapSummaryLineItems(List<SAPCpiOutboundOrderItemModel> cpqLineItems, ConfigurationSummaryData configurationSummary, SAPCpiOutboundOrderItemModel outboundItem) -
mapSummaryLineItem
protected SAPCpiOutboundOrderItemModel mapSummaryLineItem(ConfigurationSummaryLineItemData summaryLineItem, SAPCpiOutboundOrderItemModel outboundItem, int currentIncrement) -
calculateLineItemQuantity
protected String calculateLineItemQuantity(SAPCpiOutboundOrderItemModel outboundItem, ConfigurationSummaryLineItemData summaryLineItem) -
isMappingNeeded
-
getCpqService
-
getServiceLayerHelper
-