Class ProductPriceValueProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
-
- de.hybris.platform.solrfacetsearch.provider.impl.ProductPriceValueProvider
-
- All Implemented Interfaces:
FieldValueProvider
public class ProductPriceValueProvider extends AbstractPropertyFieldValueProvider implements FieldValueProvider
FieldValueProvider
for prices. Supports multi-currencies
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider
-
-
Constructor Summary
Constructors Constructor Description ProductPriceValueProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFieldValues(java.util.Collection<FieldValue> fieldValues, ProductModel product, IndexedProperty indexedProperty, java.lang.String currency)
java.util.Collection<FieldValue>
getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model)
Returns a collection ofFieldValue
of a given indexedProperty that are fetched from the model based on the indexConfig.void
setFieldNameProvider(FieldNameProvider fieldNameProvider)
void
setPriceService(PriceService priceService)
-
Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
-
-
-
Method Detail
-
getFieldValues
public java.util.Collection<FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model) throws FieldValueProviderException
Description copied from interface:FieldValueProvider
Returns a collection ofFieldValue
of a given indexedProperty that are fetched from the model based on the indexConfig. Supports multi-language and multi-currencies.- Specified by:
getFieldValues
in interfaceFieldValueProvider
- Returns:
- Collection<
FieldValue
> - Throws:
FieldValueProviderException
-
addFieldValues
protected void addFieldValues(java.util.Collection<FieldValue> fieldValues, ProductModel product, IndexedProperty indexedProperty, java.lang.String currency) throws FieldValueProviderException
- Throws:
FieldValueProviderException
-
setFieldNameProvider
public void setFieldNameProvider(FieldNameProvider fieldNameProvider)
-
setPriceService
public void setPriceService(PriceService priceService)
-
-