Class AbstractOrderProductVariantPopulator
- java.lang.Object
-
- de.hybris.platform.sap.productconfig.facades.populator.AbstractOrderProductVariantPopulator
-
- Direct Known Subclasses:
CartProductVariantPopulator,OrderProductVariantPopulator,QuoteProductVariantPopulator
public class AbstractOrderProductVariantPopulator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractOrderProductVariantPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustTargetEntryForVariant(AbstractOrderEntryModel sourceEntry, OrderEntryData targetEntry)protected CPQConfigurableCheckergetCpqConfigurableChecker()protected VariantConfigurationInfoProvidergetVariantConfigurationInfoProvider()protected voidpopulateAbstractOrderData(AbstractOrderEntryModel entry, java.util.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)protected voidwriteToTargetEntry(java.util.List<OrderEntryData> targetList, AbstractOrderEntryModel sourceEntry)Writes result to target entry DTO
-
-
-
Method Detail
-
populateAbstractOrderData
protected void populateAbstractOrderData(AbstractOrderEntryModel entry, java.util.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(java.util.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
protected CPQConfigurableChecker getCpqConfigurableChecker()
-
setCpqConfigurableChecker
public void setCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker)
Set helper, to check if the related product is a not-changeable product variant- Parameters:
cpqConfigurableChecker- configurable checker
-
getVariantConfigurationInfoProvider
protected VariantConfigurationInfoProvider getVariantConfigurationInfoProvider()
-
setVariantConfigurationInfoProvider
public void setVariantConfigurationInfoProvider(VariantConfigurationInfoProvider variantConfigurationInfoProvider)
-
-