Class ModelPropertyFieldValueProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
-
- de.hybris.platform.solrfacetsearch.provider.impl.ModelPropertyFieldValueProvider
-
- All Implemented Interfaces:
FieldValueProvider
public class ModelPropertyFieldValueProvider extends AbstractPropertyFieldValueProvider implements FieldValueProvider
-
-
Field Summary
-
Fields inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
i18nService, localeService, modelService, rangeNameProvider
-
-
Constructor Summary
Constructors Constructor Description ModelPropertyFieldValueProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addFieldValues(java.util.Collection<FieldValue> fieldValues, ItemModel model, IndexedProperty indexedProperty, java.lang.String language)
java.util.Collection<FieldValue>
getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model)
Returns a collection ofFieldValue
of a given indexedProperty that are fetched from the model based on the indexConfig.protected java.lang.Object
getPropertyValue(java.lang.Object model, IndexedProperty indexedProperty)
void
setFieldNameProvider(FieldNameProvider fieldNameProvider)
void
setVariantsService(VariantsService variantsService)
-
Methods inherited from class de.hybris.platform.solrfacetsearch.provider.impl.AbstractPropertyFieldValueProvider
getRangeNameList, getRangeNameList, setI18nService, setLocaleService, setModelService, setRangeNameProvider
-
-
-
-
Method Detail
-
getFieldValues
public java.util.Collection<FieldValue> getFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, java.lang.Object model) throws FieldValueProviderException
Description copied from interface:FieldValueProvider
Returns a collection ofFieldValue
of a given indexedProperty that are fetched from the model based on the indexConfig. Supports multi-language and multi-currencies.- Specified by:
getFieldValues
in interfaceFieldValueProvider
- Returns:
- Collection<
FieldValue
> - Throws:
FieldValueProviderException
-
addFieldValues
protected void addFieldValues(java.util.Collection<FieldValue> fieldValues, ItemModel model, IndexedProperty indexedProperty, java.lang.String language) throws FieldValueProviderException
- Throws:
FieldValueProviderException
-
getPropertyValue
protected java.lang.Object getPropertyValue(java.lang.Object model, IndexedProperty indexedProperty)
-
setFieldNameProvider
public void setFieldNameProvider(FieldNameProvider fieldNameProvider)
-
setVariantsService
public void setVariantsService(VariantsService variantsService)
-
-