Class SolrResponseDocumentMoneyDecorator

java.lang.Object
com.broadleafcommerce.search.provider.solr.response.SolrResponseDocumentMoneyDecorator
All Implemented Interfaces:
SolrResponseDocumentDecorator

public class SolrResponseDocumentMoneyDecorator extends Object implements SolrResponseDocumentDecorator
Component to convert decimal values to MonetaryAmount for certain fields.
Author:
Kelly Tisdell
  • Constructor Details

    • SolrResponseDocumentMoneyDecorator

      public SolrResponseDocumentMoneyDecorator()
  • Method Details

    • decorate

      public void decorate(org.apache.solr.common.SolrDocument document, List<com.broadleafcommerce.search.api.domain.FieldDefinition> fieldDefinitions, Map<String,Object> result, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Description copied from interface: SolrResponseDocumentDecorator
      Add some extra information to the result object mapped from the document.
      Specified by:
      decorate in interface SolrResponseDocumentDecorator
      Parameters:
      document - the document from which the result was mapped
      fieldDefinitions - the field definitions which were mapped on the document
      result - the result object mapped from the document
      contextInfo - the optional contextInfo instance