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 -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationVariantUtilprotected booleanisApproved(SOURCE productModel) protected booleanisCPQBaseProduct(ProductModel productModel) voidPopulate 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
-
Constructor Details
-
CPQProductBasicPopulator
public CPQProductBasicPopulator()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Parameters:
productModel- the source objectproductData- the target to fill
-
populatePurchasable
-
isCPQBaseProduct
-
getConfigurationVariantUtil
-
setConfigurationVariantUtil
- Parameters:
configurationVariantUtil-
-
isApproved
-