Class ArticleComponentPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
java.lang.Object
de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
com.sap.retail.commercesuite.saparticleb2caddon.populator.ArticleComponentPopulator<SOURCE,TARGET>
- Type Parameters:
SOURCE- the product modelTARGET- the product data
- All Implemented Interfaces:
de.hybris.platform.converters.Populator<SOURCE,TARGET>
public class ArticleComponentPopulator<SOURCE extends ProductModel,TARGET extends ProductData>
extends de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator<SOURCE,TARGET>
Populator to enrich product data with article component data.
The populator class retrieves for articles that are structured articles their
article components. For each article component an article component data
object is created that contains the component product, the quantity and the
unit of measure for the component. The determined product model of the
component article is converted by the product converter instance to get a
full product data object of the component article.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetArticleCommonUtils(ArticleCommonUtils articleCommonUtils) voidsetArticleComponentService(ArticleComponentService articleComponentService) Sets the article component service to the actual article component service instance.voidsetProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) Sets the product converter to the actual product converter instance.Methods inherited from class de.hybris.platform.commercefacades.product.converters.populator.AbstractProductPopulator
getModelService, getProductAttribute, safeToString, setModelService
-
Constructor Details
-
ArticleComponentPopulator
public ArticleComponentPopulator()
-
-
Method Details
-
getArticleCommonUtils
-
setArticleCommonUtils
-
populate
-
setArticleComponentService
Sets the article component service to the actual article component service instance.- Parameters:
articleComponentService- the article component service to use
-
setProductConverter
public void setProductConverter(de.hybris.platform.servicelayer.dto.converter.Converter<ProductModel, ProductData> productConverter) Sets the product converter to the actual product converter instance.- Parameters:
productConverter- the product converter instance to use
-