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
Converter implementation for
SearchResultValueData as
source and ProductData as target type. Adds all the
information related to multivariant products.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected 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, resolvePrice, setCommonI18NService, setImageFormatMapping, setPriceDataFactory, setProductDataUrlResolver, setProductFeatureListPopulator, setProductService, setStockConverter, setStockLevelStatusConverter
-
Field Details
-
MULTIDIMENSIONAL
- See Also:
-
PRICE_RANGE
- See Also:
-
FIRST_CATEGORY_NAME_LIST
- See Also:
-
-
Constructor Details
-
SearchResultVariantProductPopulator
public SearchResultVariantProductPopulator()
-
-
Method Details
-
populate
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
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
-
setFirstCategoryNameList
Set list of first categories for theProductData.- Parameters:
source- TheSearchResultValueDatacontaining the priceRange.target- TheProductDatato be modified.
-
setCategoryManager
-