Class ProductVolumePricesProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
-
- de.hybris.platform.yacceleratorcore.search.solrfacetsearch.provider.impl.ProductVolumePricesProvider
-
- All Implemented Interfaces:
FieldValueProvider
public class ProductVolumePricesProvider extends AbstractPropertyFieldValueProvider implements FieldValueProvider
Provides value for volumePrices flag. "true" if product has volume prices, "false" otherwise.
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider
-
-
Constructor Summary
Constructors Constructor Description ProductVolumePricesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidaddFieldValues(IndexedProperty indexedProperty, ProductModel product, java.util.Collection<FieldValue> fieldValues, CurrencyModel currency)protected FieldNameProvidergetFieldNameProvider()java.util.Collection<FieldValue>getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model)Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.protected PriceServicegetPriceService()protected java.lang.BooleanhasVolumePrices(ProductModel product)voidsetFieldNameProvider(FieldNameProvider fieldNameProvider)voidsetPriceService(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: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
-
addFieldValues
protected void addFieldValues(IndexedProperty indexedProperty, ProductModel product, java.util.Collection<FieldValue> fieldValues, CurrencyModel currency)
-
hasVolumePrices
protected java.lang.Boolean hasVolumePrices(ProductModel product)
-
getPriceService
protected PriceService getPriceService()
-
setPriceService
public void setPriceService(PriceService priceService)
-
getFieldNameProvider
protected FieldNameProvider getFieldNameProvider()
-
setFieldNameProvider
public void setFieldNameProvider(FieldNameProvider fieldNameProvider)
-
-