Class SubscriptionProductPriceValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.subscriptionservices.search.solrfacetsearch.provider.impl.SubscriptionAwareFieldValueProvider
de.hybris.platform.subscriptionservices.search.solrfacetsearch.provider.impl.SubscriptionProductPriceValueProvider
- All Implemented Interfaces:
FieldValueProvider
public class SubscriptionProductPriceValueProvider
extends SubscriptionAwareFieldValueProvider
implements FieldValueProvider
This ValueProvider will provide the base price value for a subscription
ProductModel which is the highest
recurring price from its price plan. For other product types the standard functionality is used.-
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 product, IndexedProperty indexedProperty, CurrencyModel currency) protected DoublegetBasePriceForNonSubscriptionProduct(ProductModel product, CurrencyModel currency) protected DoublegetBasePriceForSubscriptionProduct(ProductModel product, CurrencyModel currency) protected SubscriptionCommercePriceServicegetFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.protected PriceServicevoidsetCommercePriceService(SubscriptionCommercePriceService commercePriceService) voidsetPriceService(PriceService priceService) Methods inherited from class de.hybris.platform.subscriptionservices.search.solrfacetsearch.provider.impl.SubscriptionAwareFieldValueProvider
getCommonI18NService, getFieldNameProvider, getPropertyValue, getSessionService, getSubscriptionFieldValues, getSubscriptionProductService, setCommonI18NService, setFieldNameProvider, setSessionService, setSubscriptionProductServiceMethods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
SubscriptionProductPriceValueProvider
public SubscriptionProductPriceValueProvider()
-
-
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 product, IndexedProperty indexedProperty, CurrencyModel currency) -
getBasePriceForSubscriptionProduct
-
getBasePriceForNonSubscriptionProduct
protected Double getBasePriceForNonSubscriptionProduct(ProductModel product, CurrencyModel currency) -
addFieldValues
protected void addFieldValues(List<FieldValue> fieldValues, IndexedProperty indexedProperty, CurrencyModel currency, Object value) -
getCommercePriceService
-
setCommercePriceService
-
getPriceService
-
setPriceService
-