Class PrimaryPromotionImageValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.PrimaryPromotionImageValueProvider
- All Implemented Interfaces:
FieldValueProvider
public class PrimaryPromotionImageValueProvider
extends AbstractPropertyFieldValueProvider
implements FieldValueProvider
This ValueProvider will provide the product banner from the product's primary promotion. Implementation uses only the
DefaultPromotionGroup.
-
Field Summary
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Collection<FieldValue>createFieldValues(IndexedProperty indexedProperty, MediaModel media) protected Collection<FieldValue>createFieldValues(IndexedProperty indexedProperty, String value) protected FieldNameProvidergetFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.protected PromotionsServicevoidsetFieldNameProvider(FieldNameProvider fieldNameProvider) voidsetPromotionsService(PromotionsService promotionService) Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
PrimaryPromotionImageValueProvider
public PrimaryPromotionImageValueProvider()
-
-
Method Details
-
getFieldNameProvider
-
setFieldNameProvider
-
getPromotionsService
-
setPromotionsService
-
getFieldValues
public Collection<FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) throws FieldValueProviderException Description copied from interface:FieldValueProviderReturns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig. Supports multi-language and multi-currencies.- Specified by:
getFieldValuesin interfaceFieldValueProvider- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
createFieldValues
protected Collection<FieldValue> createFieldValues(IndexedProperty indexedProperty, MediaModel media) -
createFieldValues
-