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 void
adjustTargetEntryForVariant(AbstractOrderEntryModel sourceEntry, OrderEntryData targetEntry)
protected CPQConfigurableChecker
getCpqConfigurableChecker()
protected VariantConfigurationInfoProvider
getVariantConfigurationInfoProvider()
protected void
populateAbstractOrderData(AbstractOrderEntryModel entry, java.util.List<OrderEntryData> targetList)
Transfers product variant related attributes from order entry into its DTO representationvoid
setCpqConfigurableChecker(CPQConfigurableChecker cpqConfigurableChecker)
Set helper, to check if the related product is a not-changeable product variantvoid
setVariantConfigurationInfoProvider(VariantConfigurationInfoProvider variantConfigurationInfoProvider)
protected void
writeToTargetEntry(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)
-
-