Class ArticleComponentPopulator<SOURCE extends ProductModel,​TARGET extends ProductData>

  • 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.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void populate​(SOURCE productModel, TARGET productData)  
      void setArticleComponentService​(ArticleComponentService articleComponentService)
      Sets the article component service to the actual article component service instance.
      void setProductConverter​(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
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ArticleComponentPopulator

        public ArticleComponentPopulator()
    • Method Detail

      • 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