Class CPQProductBasicPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
- java.lang.Object
-
- de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
-
- de.hybris.platform.sap.productconfig.facades.populator.CPQProductBasicPopulator<SOURCE,TARGET>
-
- Type Parameters:
SOURCE- product modelTARGET- product DTO
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class CPQProductBasicPopulator<SOURCE extends ProductModel,TARGET extends ProductData> extends AbstractProductPopulator<SOURCE,TARGET>
For CPQ, variant base products are purchasable (if approved). This is the only attribute that is touched here.
-
-
Constructor Summary
Constructors Constructor Description CPQProductBasicPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConfigurationVariantUtilgetConfigurationVariantUtil()protected booleanisApproved(SOURCE productModel)protected booleanisCPQBaseProduct(ProductModel productModel)voidpopulate(SOURCE productModel, TARGET productData)Populate the target instance with values from the source instance.protected voidpopulatePurchasable(SOURCE productModel, TARGET productData)voidsetConfigurationVariantUtil(ConfigurationVariantUtil configurationVariantUtil)-
Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
-
-
-
Method Detail
-
populate
public void populate(SOURCE productModel, TARGET productData)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Parameters:
productModel- the source objectproductData- the target to fill
-
isCPQBaseProduct
protected boolean isCPQBaseProduct(ProductModel productModel)
-
getConfigurationVariantUtil
protected ConfigurationVariantUtil getConfigurationVariantUtil()
-
setConfigurationVariantUtil
public void setConfigurationVariantUtil(ConfigurationVariantUtil configurationVariantUtil)
- Parameters:
configurationVariantUtil-
-
isApproved
protected boolean isApproved(SOURCE productModel)
-
-