Class CPQProductVariantMatrixPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
java.lang.Object
de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
de.hybris.platform.commercefacades.product.converters.populator.ProductVariantMatrixPopulator<SOURCE,TARGET>
de.hybris.platform.sap.productconfig.facades.populator.CPQProductVariantMatrixPopulator<SOURCE,TARGET>
- Type Parameters:
SOURCE- product modelTARGET- product DTO
- All Implemented Interfaces:
Populator<SOURCE,TARGET>
public class CPQProductVariantMatrixPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
extends ProductVariantMatrixPopulator<SOURCE,TARGET>
CPQ Variant base products must not be multidimensional in the accelerator sense (as we want to configure and order
them)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ConfigurationVariantUtilvoidpopulate(ProductModel productModel, ProductData productData) Populates the productData with the categories information modeled as a tree.protected voidpopulateVariantAttributes(ProductData productData) voidsetConfigurationVariantUtil(ConfigurationVariantUtil configurationVariantUtil) Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.ProductVariantMatrixPopulator
createNode, createNodesForVariant, getExistingNode, getStarterVariant, getValueCategoryComparator, getVariantMatrixElementPopulator, getVariants, getVariantValuesCategories, orderTree, setValueCategoryComparator, setVariantMatrixElementPopulatorMethods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
Constructor Details
-
CPQProductVariantMatrixPopulator
public CPQProductVariantMatrixPopulator()
-
-
Method Details
-
populate
Description copied from class:ProductVariantMatrixPopulatorPopulates the productData with the categories information modeled as a tree. The resulting tree, modeled as a group of nested lists, where the outer list will have someVariantMatrixElementDatarepresenting the categories with priority_1, and each of those contains a list ofVariantMatrixElementDatarepresenting the categories with priority_2, and so on.
e.g.: A product with dimensions color/fit/size would return a list organized like this: <BROWN:<normal:<7;8;9>; wide:<8;9;10>>; BLACK<normal:<7;8>>>- Specified by:
populatein interfacePopulator<SOURCE extends ProductModel,TARGET extends ProductData> - Overrides:
populatein classProductVariantMatrixPopulator<SOURCE extends ProductModel,TARGET extends ProductData> - Parameters:
productModel- the product to take the data from.productData- the data to put the data in.
-
populateVariantAttributes
-
getConfigurationVariantUtil
-
setConfigurationVariantUtil
- Parameters:
configurationVariantUtil-
-