Class VariantProductStockLevelStatusValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.ProductStockLevelStatusValueProvider
de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.VariantProductStockLevelStatusValueProvider
- All Implemented Interfaces:
FieldValueProvider
public class VariantProductStockLevelStatusValueProvider
extends ProductStockLevelStatusValueProvider
This ValueProvider will provide the product stock level status for all the variant of a product. The stock level
count changes so frequently that it is not sensible to index the count directly, but rather to map the count to a
status (or band) and then index the status.
-
Field Summary
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.protected ProductSourcevoidsetProductSource(ProductSource productSource) Methods inherited from class de.hybris.platform.commerceservices.search.solrfacetsearch.provider.impl.ProductStockLevelStatusValueProvider
addFieldValues, createFieldValue, getCommerceStockService, getFieldNameProvider, getProductStockLevelStatus, setCommerceStockService, setFieldNameProviderMethods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
Constructor Details
-
VariantProductStockLevelStatusValueProvider
public VariantProductStockLevelStatusValueProvider()
-
-
Method Details
-
getFieldValues
public Collection<FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) throws FieldValueProviderException Description copied from interface:FieldValueProviderReturns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig. Supports multi-language and multi-currencies.- Specified by:
getFieldValuesin interfaceFieldValueProvider- Overrides:
getFieldValuesin classProductStockLevelStatusValueProvider- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
getProductSource
-
setProductSource
-