Class AbstractOrderProductVariantPopulator
java.lang.Object
de.hybris.platform.sap.productconfig.facades.populator.AbstractOrderProductVariantPopulator
- Direct Known Subclasses:
CartProductVariantPopulator,OrderProductVariantPopulator,QuoteProductVariantPopulator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustTargetEntryForVariant(AbstractOrderEntryModel sourceEntry, OrderEntryData targetEntry) protected CPQConfigurableCheckerprotected VariantConfigurationInfoProviderprotected voidpopulateAbstractOrderData(AbstractOrderEntryModel entry, List<OrderEntryData> targetList) Transfers product variant related attributes from order entry into its DTO representationvoidsetCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker) Set helper, to check if the related product is a not-changeable product variantvoidsetVariantConfigurationInfoProvider(VariantConfigurationInfoProvider variantConfigurationInfoProvider) Sets bean that allows to get generic configuration data per productprotected voidwriteToTargetEntry(List<OrderEntryData> targetList, AbstractOrderEntryModel sourceEntry) Writes result to target entry DTO
-
Constructor Details
-
AbstractOrderProductVariantPopulator
public AbstractOrderProductVariantPopulator()
-
-
Method Details
-
populateAbstractOrderData
protected void populateAbstractOrderData(AbstractOrderEntryModel entry, List<OrderEntryData> targetList) Transfers product variant related attributes from order entry into its DTO representation- Parameters:
targetList- Order DTO entries, used to get the cart entry DTO via searching for keyentry- Order entry model
-
writeToTargetEntry
protected void writeToTargetEntry(List<OrderEntryData> targetList, AbstractOrderEntryModel sourceEntry) Writes result to target entry DTO- Parameters:
targetList- Order DTO entries, used to get the cart entry DTO via searching for keysourceEntry- Order entry modelfeatures- List of features
-
adjustTargetEntryForVariant
protected void adjustTargetEntryForVariant(AbstractOrderEntryModel sourceEntry, OrderEntryData targetEntry) -
getCpqConfigurableChecker
-
setCpqConfigurableChecker
Set helper, to check if the related product is a not-changeable product variant- Parameters:
cpqConfigurableChecker- configurable checker
-
getVariantConfigurationInfoProvider
-
setVariantConfigurationInfoProvider
public void setVariantConfigurationInfoProvider(VariantConfigurationInfoProvider variantConfigurationInfoProvider) Sets bean that allows to get generic configuration data per product- Parameters:
variantConfigurationInfoProvider-
-