Class PricingItemInputKBProductPopulator
java.lang.Object
de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingItemInputPopulator
de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.PricingItemInputKBProductPopulator
- All Implemented Interfaces:
de.hybris.platform.sap.productconfig.runtime.interf.ContextualPopulator<CPSMasterDataProductContainer,PricingItemInput, MasterDataContext>
public class PricingItemInputKBProductPopulator
extends AbstractPricingItemInputPopulator
implements de.hybris.platform.sap.productconfig.runtime.interf.ContextualPopulator<CPSMasterDataProductContainer,PricingItemInput,MasterDataContext>
Populates the pricing item input data for querying static pricing information, such as value prices, based on the
configuration master data.
We are caching the value prices per product. This of course assumes that a product is part of a KB only in one unit, the base unit. This assumption is correct for IPC/SSC in general, even if it is possible to create BOM's with different UOMs for the same product: You can achieve this by assigning different unit of issues on plant level. Such situations however lead to errors during KB generation. *
We are caching the value prices per product. This of course assumes that a product is part of a KB only in one unit, the base unit. This assumption is correct for IPC/SSC in general, even if it is possible to create BOM's with different UOMs for the same product: You can achieve this by assigning different unit of issues on plant level. Such situations however lead to errors during KB generation. *
-
Field Summary
Fields inherited from class de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingItemInputPopulator
EMPTY_STRING, FORMATTED_DATE_LENGTH, STATISTICAL, X -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CPSVariantConditioncreateVariantCondition(CPSMasterDataVariantPriceKey pricingKey) protected voidfillVariantConditions(CPSMasterDataProductContainer source, PricingItemInput target, MasterDataContext context) protected StringgetIsoUOM(CPSMasterDataProductContainer product) voidpopulate(CPSMasterDataProductContainer source, PricingItemInput target, MasterDataContext context) protected StringretrievePricingProduct(CPSMasterDataProductContainer source, MasterDataContext context) Methods inherited from class de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingItemInputPopulator
createAccessDate, createAttribute, createProductInfo, createQty, fillAccessDates, fillCoreAttributes, fillPricingAttributes, getConfigurationParameterB2B, getI18NService, getPricingConfigurationParameter, getPricingDateAsString, getProductService, setConfigurationParameterB2B, setI18NService, setPricingConfigurationParameter, setProductService
-
Constructor Details
-
PricingItemInputKBProductPopulator
public PricingItemInputKBProductPopulator()
-
-
Method Details
-
populate
public void populate(CPSMasterDataProductContainer source, PricingItemInput target, MasterDataContext context) - Specified by:
populatein interfacede.hybris.platform.sap.productconfig.runtime.interf.ContextualPopulator<CPSMasterDataProductContainer,PricingItemInput, MasterDataContext>
-
retrievePricingProduct
protected String retrievePricingProduct(CPSMasterDataProductContainer source, MasterDataContext context) -
fillVariantConditions
protected void fillVariantConditions(CPSMasterDataProductContainer source, PricingItemInput target, MasterDataContext context) -
createVariantCondition
-
getIsoUOM
-