Class PricingDocumentInputKBPopulator
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingDocumentInputPopulator
-
- de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.PricingDocumentInputKBPopulator
-
- All Implemented Interfaces:
ContextualPopulator<CPSMasterDataKnowledgeBaseContainer,PricingDocumentInput,MasterDataContext>
public class PricingDocumentInputKBPopulator extends AbstractPricingDocumentInputPopulator implements ContextualPopulator<CPSMasterDataKnowledgeBaseContainer,PricingDocumentInput,MasterDataContext>
Popuplates the pricing document input data for querrying static pricing information, such as value prices, based on the configuration master data.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingDocumentInputPopulator
GROUP_CONDITION, ITEM_CONDITION_REQUIRED
-
-
Constructor Summary
Constructors Constructor Description PricingDocumentInputKBPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidenrichProductWithUnit(CPSMasterDataProductContainer product, CPSMasterDataKnowledgeBaseContainer source)protected voidfillPricingItemsInput(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)protected voidfillPricingItemsInputFromProducts(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)protected ContextualConverter<CPSMasterDataProductContainer,PricingItemInput,MasterDataContext>getPricingItemInputKBProductConverter()voidpopulate(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)Populate the target instance from the source instance.voidsetPricingItemInputKBProductConverter(ContextualConverter<CPSMasterDataProductContainer,PricingItemInput,MasterDataContext> pricingItemInputKBProductConverter)-
Methods inherited from class de.hybris.platform.sap.productconfig.runtime.cps.populator.impl.AbstractPricingDocumentInputPopulator
fillCoreAttributes, getI18NService, getPricingConfigurationParameter, setI18NService, setPricingConfigurationParameter
-
-
-
-
Method Detail
-
populate
public void populate(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)
Description copied from interface:ContextualPopulatorPopulate the target instance from the source instance. The collection of options is used to control what data is populated.- Specified by:
populatein interfaceContextualPopulator<CPSMasterDataKnowledgeBaseContainer,PricingDocumentInput,MasterDataContext>- Parameters:
source- the source objecttarget- the target to fillcontext- populating context
-
fillPricingItemsInput
protected void fillPricingItemsInput(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)
-
fillPricingItemsInputFromProducts
protected void fillPricingItemsInputFromProducts(CPSMasterDataKnowledgeBaseContainer source, PricingDocumentInput target, MasterDataContext context)
-
enrichProductWithUnit
protected void enrichProductWithUnit(CPSMasterDataProductContainer product, CPSMasterDataKnowledgeBaseContainer source)
-
getPricingItemInputKBProductConverter
protected ContextualConverter<CPSMasterDataProductContainer,PricingItemInput,MasterDataContext> getPricingItemInputKBProductConverter()
-
setPricingItemInputKBProductConverter
public void setPricingItemInputKBProductConverter(ContextualConverter<CPSMasterDataProductContainer,PricingItemInput,MasterDataContext> pricingItemInputKBProductConverter)
- Parameters:
pricingItemInputKBProductConverter- converter create the pricing input data from the product master data
-
-