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 model
TARGET - 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 Details

    • ArticleComponentPopulator

      public ArticleComponentPopulator()
  • Method Details

    • getArticleCommonUtils

      public ArticleCommonUtils getArticleCommonUtils()
    • setArticleCommonUtils

      public void setArticleCommonUtils(ArticleCommonUtils articleCommonUtils)
    • populate

      public void populate(SOURCE productModel, TARGET productData)
    • setArticleComponentService

      public void setArticleComponentService(ArticleComponentService articleComponentService)
      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