Class ProductPriceSnIndexerValueProvider
java.lang.Object
de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider<ProductModel,ProductPriceSnIndexerValueProvider.ProductPriceData>
de.hybris.platform.commerceservices.search.searchservices.provider.impl.ProductPriceSnIndexerValueProvider
- All Implemented Interfaces:
SnIndexerValueProvider<ProductModel>
public class ProductPriceSnIndexerValueProvider
extends AbstractSnIndexerValueProvider<ProductModel,ProductPriceSnIndexerValueProvider.ProductPriceData>
Implementation of
SnIndexerValueProvider for product prices.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ObjectgetFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductPriceSnIndexerValueProvider.ProductPriceData data) Returns the value for a given field and source model.Returns the supported qualifier classes.loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) Loads data for the given indexer context.protected voidloadDefaultPrice(ProductModel source, Map<String, Double> data) loadPrices(Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) protected voidloadQualifiedPrices(SnIndexerFieldWrapper fieldWrapper, ProductModel source, Map<String, Double> data) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetPriceService(PriceService priceService) voidsetSnSessionService(SnSessionService snSessionService) Methods inherited from class de.hybris.platform.searchservices.indexer.service.impl.AbstractSnIndexerValueProvider
getValueProcessors, processValue, provide, setValueProcessors
-
Field Details
-
ID
- See Also:
-
DEFAULT_CURRENCY_KEY
-
SUPPORTED_QUALIFIER_CLASSES
-
-
Constructor Details
-
ProductPriceSnIndexerValueProvider
public ProductPriceSnIndexerValueProvider()
-
-
Method Details
-
getSupportedQualifierClasses
Description copied from interface:SnIndexerValueProviderReturns the supported qualifier classes.- Returns:
- the supported qualifier classes
- Throws:
SnIndexerException
-
getFieldValue
protected Object getFieldValue(SnIndexerContext indexerContext, SnIndexerFieldWrapper fieldWrapper, ProductModel source, ProductPriceSnIndexerValueProvider.ProductPriceData data) Description copied from class:AbstractSnIndexerValueProviderReturns the value for a given field and source model.- Specified by:
getFieldValuein classAbstractSnIndexerValueProvider<ProductModel,ProductPriceSnIndexerValueProvider.ProductPriceData> - Parameters:
indexerContext- - the current indexer contextfieldWrapper- - the field wrappersource- - the source modeldata- - the data
-
loadData
protected ProductPriceSnIndexerValueProvider.ProductPriceData loadData(SnIndexerContext indexerContext, Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) throws SnIndexerException Description copied from class:AbstractSnIndexerValueProviderLoads data for the given indexer context.- Overrides:
loadDatain classAbstractSnIndexerValueProvider<ProductModel,ProductPriceSnIndexerValueProvider.ProductPriceData> - Parameters:
indexerContext- - the current indexer contextfieldWrappers- - the field wrapperssource- - the source model- Throws:
SnIndexerException- if an error occurs
-
loadPrices
protected Map<String,Double> loadPrices(Collection<SnIndexerFieldWrapper> fieldWrappers, ProductModel source) -
loadQualifiedPrices
protected void loadQualifiedPrices(SnIndexerFieldWrapper fieldWrapper, ProductModel source, Map<String, Double> data) -
loadDefaultPrice
-
getCommonI18NService
-
setCommonI18NService
-
getPriceService
-
setPriceService
-
getSnSessionService
-
setSnSessionService
-