Class LowestBundlePriceValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.configurablebundleservices.search.solrfacetsearch.provider.impl.LowestBundlePriceValueProvider
- All Implemented Interfaces:
FieldValueProvider
public class LowestBundlePriceValueProvider
extends AbstractPropertyFieldValueProvider
implements FieldValueProvider
This ValueProvider will provide the value for the
ProductModel's lowest possible price in any bundle.-
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 voidaddFieldValues(List<FieldValue> fieldValues, IndexedProperty indexedProperty, CurrencyModel currency, Object value) protected List<FieldValue>createFieldValue(ProductModel productModel, IndexedProperty indexedProperty, CurrencyModel currency) protected BundleRuleServiceprotected SubscriptionCommercePriceServiceprotected CommonI18NServiceprotected 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 ObjectgetPriceForProduct(ProductModel productModel, CurrencyModel currency) protected ObjectgetPriceForSubscription(ProductModel productModel, CurrencyModel currency) protected PriceServiceprotected SessionServiceprotected SubscriptionProductServicevoidsetBundleRuleService(BundleRuleService bundleRuleService) voidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetFieldNameProvider(FieldNameProvider fieldNameProvider) voidsetPriceService(PriceService priceService) voidsetSessionService(SessionService sessionService) voidsetSubscriptionProductService(SubscriptionProductService subscriptionProductService) Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
LowestBundlePriceValueProvider
public LowestBundlePriceValueProvider()
-
-
Method Details
-
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
-
createFieldValue
protected List<FieldValue> createFieldValue(ProductModel productModel, IndexedProperty indexedProperty, CurrencyModel currency) -
getPriceForSubscription
-
getPriceForProduct
-
addFieldValues
protected void addFieldValues(List<FieldValue> fieldValues, IndexedProperty indexedProperty, CurrencyModel currency, Object value) -
getFieldNameProvider
-
setFieldNameProvider
-
setBundleRuleService
-
getBundleRuleService
-
setPriceService
-
getPriceService
-
setCommonI18NService
-
getCommonI18NService
-
setSessionService
-
getSessionService
-
setCommercePriceService
-
getCommercePriceService
-
setSubscriptionProductService
-
getSubscriptionProductService
-