Class SearchResultVariantProductPopulator
- java.lang.Object
-
- de.hybris.platform.commercefacades.search.converters.populator.SearchResultProductPopulator
-
- de.hybris.platform.commercefacades.search.converters.populator.SearchResultVariantProductPopulator
-
- All Implemented Interfaces:
Populator<SearchResultValueData,ProductData>
- Direct Known Subclasses:
SearchResultVariantOptionsProductPopulator
public class SearchResultVariantProductPopulator extends SearchResultProductPopulator
Converter implementation forSearchResultValueDataas source andProductDataas target type. Adds all the information related to multivariant products.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringFIRST_CATEGORY_NAME_LISTstatic java.lang.StringMULTIDIMENSIONALstatic java.lang.StringPRICE_RANGE
-
Constructor Summary
Constructors Constructor Description SearchResultVariantProductPopulator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected PriceDatacreatePriceData(SolrPriceRangeEntry priceInfo)voidpopulate(SearchResultValueData source, ProductData target)Populate the target instance with values from the source instance.voidsetCategoryManager(SolrFirstVariantCategoryManager categoryManager)protected voidsetFirstCategoryNameList(SearchResultValueData source, ProductData target)Set list of first categories for theProductData.protected voidsetPriceRange(SearchResultValueData source, ProductData target)Set price range for theProductData.-
Methods inherited from class de.hybris.platform.commercefacades.search.converters.populator.SearchResultProductPopulator
addImageData, addImageData, createImageData, createImageData, createPromotionData, createPromotionData, getCommonI18NService, getFeaturesList, getImageFormatMapping, getPriceDataFactory, getProductDataUrlResolver, getProductFeatureListPopulator, getProductService, getStockConverter, getStockLevelStatusConverter, getValue, populatePrices, populatePromotions, populateStock, populateUrl, setCommonI18NService, setImageFormatMapping, setPriceDataFactory, setProductDataUrlResolver, setProductFeatureListPopulator, setProductService, setStockConverter, setStockLevelStatusConverter
-
-
-
-
Field Detail
-
MULTIDIMENSIONAL
public static final java.lang.String MULTIDIMENSIONAL
- See Also:
- Constant Field Values
-
PRICE_RANGE
public static final java.lang.String PRICE_RANGE
- See Also:
- Constant Field Values
-
FIRST_CATEGORY_NAME_LIST
public static final java.lang.String FIRST_CATEGORY_NAME_LIST
- See Also:
- Constant Field Values
-
-
Method Detail
-
populate
public void populate(SearchResultValueData source, ProductData target)
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<SearchResultValueData,ProductData>- Overrides:
populatein classSearchResultProductPopulator- Parameters:
source- the source objecttarget- the target to fill
-
setPriceRange
protected void setPriceRange(SearchResultValueData source, ProductData target)
Set price range for theProductData. If there is no priceRange in the source, noPriceRangeDatawill be set in the target.- Parameters:
source- TheSearchResultValueDatacontaining the priceRange.target- TheProductDatato be modified.
-
createPriceData
protected PriceData createPriceData(SolrPriceRangeEntry priceInfo)
-
setFirstCategoryNameList
protected void setFirstCategoryNameList(SearchResultValueData source, ProductData target)
Set list of first categories for theProductData.- Parameters:
source- TheSearchResultValueDatacontaining the priceRange.target- TheProductDatato be modified.
-
setCategoryManager
public void setCategoryManager(SolrFirstVariantCategoryManager categoryManager)
-
-