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

public class TmaPoPriceValueProvider extends TmaAbstractPropertyFieldValueProvider
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
  • 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

      protected boolean hasNoApplicablePrice(IndexConfig indexConfig, Object model)
    • 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 price
      currency - 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

      protected TmaCommercePriceService getCommercePriceService()
    • setCommercePriceService

      public void setCommercePriceService(TmaCommercePriceService commercePriceService)