Class TmaProdSpecCharValueUseResolver
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<PriceRowModel,Object,Object>
de.hybris.platform.b2ctelcoservices.search.solrfacetsearch.provider.impl.pricing.TmaProdSpecCharValueUseResolver
- All Implemented Interfaces:
de.hybris.platform.solrfacetsearch.provider.QualifierProviderAware,de.hybris.platform.solrfacetsearch.provider.ValueResolver<PriceRowModel>
public class TmaProdSpecCharValueUseResolver
extends de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<PriceRowModel,Object,Object>
Field Value Provider for indexing pscvu's. The indexed pscvu's will include the entire structure,
persisted as json.
- Since:
- 2105
-
Nested Class Summary
-
Constructor Summary
ConstructorsConstructorDescriptionTmaProdSpecCharValueUseResolver(TmaSpoSource spoSource, org.springframework.core.convert.converter.Converter<TmaProductSpecCharValueUseModel, TmaSolrDocumentPscvUse> tmaSolrDocumentPscvuConverter) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddFieldValues(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, de.hybris.platform.solrfacetsearch.indexer.IndexerBatchContext indexerBatchContext, IndexedProperty indexedProperty, PriceRowModel priceRowModel, de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.ValueResolverContext<Object, Object> valueResolverContext) protected voidaddProductOfferingPriceToInputDocument(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, IndexedProperty indexedProperty, Set<TmaSolrDocumentPscvUse> pscvUses, String priceRowCode) Transform theTmaSolrDocumentPscvUseinto json format and appends it to the solr document received as .protected TmaSpoSourceprotected org.springframework.core.convert.converter.Converter<TmaProductSpecCharValueUseModel,TmaSolrDocumentPscvUse> Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver
addFieldValue, createLocalSessionContext, doResolve, filterAndAddFieldValues, filterFieldValue, getQualifierProvider, getSessionService, getValueFilters, loadData, loadQualifierData, removeLocalSessionContext, resolve, setQualifierProvider, setSessionService, setValueFilters
-
Constructor Details
-
TmaProdSpecCharValueUseResolver
public TmaProdSpecCharValueUseResolver(TmaSpoSource spoSource, org.springframework.core.convert.converter.Converter<TmaProductSpecCharValueUseModel, TmaSolrDocumentPscvUse> tmaSolrDocumentPscvuConverter)
-
-
Method Details
-
addFieldValues
protected void addFieldValues(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, de.hybris.platform.solrfacetsearch.indexer.IndexerBatchContext indexerBatchContext, IndexedProperty indexedProperty, PriceRowModel priceRowModel, de.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver.ValueResolverContext<Object, Object> valueResolverContext) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException- Specified by:
addFieldValuesin classde.hybris.platform.solrfacetsearch.provider.impl.AbstractValueResolver<PriceRowModel,Object, Object> - Throws:
de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException
-
addProductOfferingPriceToInputDocument
protected void addProductOfferingPriceToInputDocument(de.hybris.platform.solrfacetsearch.indexer.spi.InputDocument inputDocument, IndexedProperty indexedProperty, Set<TmaSolrDocumentPscvUse> pscvUses, String priceRowCode) throws de.hybris.platform.solrfacetsearch.config.exceptions.FieldValueProviderException Transform theTmaSolrDocumentPscvUseinto json format and appends it to the solr document received as .- Parameters:
inputDocument- solr input document to be populated with the Product Offering PriceindexedProperty- the indexed property for which the input document will be constructedpscvUses- product offering price to be populated on the documentpriceRowCode- code of the price 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
-
getSpoSource
-
getTmaSolrDocumentPscvUseConverter
protected org.springframework.core.convert.converter.Converter<TmaProductSpecCharValueUseModel,TmaSolrDocumentPscvUse> getTmaSolrDocumentPscvUseConverter()
-