Class TmaPoPriceValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.TmaAbstractPropertyFieldValueProvider
de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.TmaPoPriceValueProvider
- All Implemented Interfaces:
de.hybris.platform.solrfacetsearch.provider.FieldValueProvider
Field Value Provider for indexing Product Offering Prices. The indexed prices will be the minimum ones available for
the
TmaProcessType.ACQUISITION flow.- Since:
- 6.7
-
Field Summary
Fields inherited from class de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.TmaAbstractPropertyFieldValueProvider
DEFAULT_CATEGORY_PAGE_PROCESS_TYPEFields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected DoublecomputeBasePriceValueForProductOffering(TmaProductOfferingModel productOffering, CurrencyModel currency) Computes the base price value for the given and by retrieving it for the appropriate price context for which the price will be applicable.protected List<de.hybris.platform.solrfacetsearch.provider.FieldValue>createFieldValue(TmaProductOfferingModel productOfferingModel, IndexedProperty indexedProperty, CurrencyModel currency) protected TmaCommercePriceServiceCollection<de.hybris.platform.solrfacetsearch.provider.FieldValue>getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) protected booleanhasNoApplicablePrice(IndexConfig indexConfig, Object model) voidsetCommercePriceService(TmaCommercePriceService commercePriceService) Methods inherited from class de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.TmaAbstractPropertyFieldValueProvider
addFieldValues, addFieldValuesForCurrency, getFieldNameProvider, setFieldNameProviderMethods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
TmaPoPriceValueProvider
public TmaPoPriceValueProvider()
-
-
Method Details
-
getFieldValues
public Collection<de.hybris.platform.solrfacetsearch.provider.FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException - Throws:
de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
-
hasNoApplicablePrice
-
createFieldValue
protected List<de.hybris.platform.solrfacetsearch.provider.FieldValue> createFieldValue(TmaProductOfferingModel productOfferingModel, IndexedProperty indexedProperty, CurrencyModel currency) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException - Throws:
de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
-
computeBasePriceValueForProductOffering
protected Double computeBasePriceValueForProductOffering(TmaProductOfferingModel productOffering, CurrencyModel currency) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException Computes the base price value for the given and by retrieving it for the appropriate price context for which the price will be applicable.- Parameters:
productOffering- product offering for which to retrieve the pricecurrency- currency for which the price is applicable- Returns:
- computed price value
- Throws:
de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException- if the given has neither recurring charges, a value or one time charges, thus no value can be found
-
getCommercePriceService
-
setCommercePriceService
-