java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<AbstractDiscountRowModel,Object,Object>
de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.pricing.TmaPopAlterationValueResolver
All Implemented Interfaces:
de.hybris.platform.solrfacetsearch.provider.QualifierProviderAware, de.hybris.platform.solrfacetsearch.provider.ValueResolver<AbstractDiscountRowModel>

public class TmaPopAlterationValueResolver extends de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<AbstractDiscountRowModel,Object,Object>
Field Value Provider for indexing Product Offering Price Alterations. The indexed discounts will include the entire Composite Structure, persisted as json.
Since:
2302
  • Constructor Details

  • Method Details

    • addFieldValues

      protected void addFieldValues(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, de.hybris.platform.solrfacetsearch.indexer.IndexerBatchContext indexerBatchContext, IndexedProperty indexedProperty, AbstractDiscountRowModel discountRowModel, de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.ValueResolverContext<Object,Object> valueResolverContext) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
      Specified by:
      addFieldValues in class de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<AbstractDiscountRowModel,Object,Object>
      Throws:
      de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
    • addProductOfferingPriceToInputDocument

      protected void addProductOfferingPriceToInputDocument(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, IndexedProperty indexedProperty, TmaSolrDocumentProductOfferingPrice solrDocumentProductOfferingPrice, String discountRowCode) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
      Transform the TmaSolrDocumentProductOfferingPrice into json format and appends it to the solr document received as .
      Parameters:
      inputDocument - solr input document to be populated with the Product Offering Price
      indexedProperty - the indexed property for which the input document will be constructed
      solrDocumentProductOfferingPrice - product offering price to be populated on the document
      discountRowCode - code of the discount row for which the pop is to be indexed
      Throws:
      de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException - if the converted product offering price cannot be added to the document
    • getProductOfferingPriceConvertersMap

      protected Map<String,org.springframework.core.convert.converter.Converter<TmaProductOfferingPriceModel,TmaSolrDocumentProductOfferingPrice>> getProductOfferingPriceConvertersMap()