Class SpELValueProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.SpELValueProvider
- All Implemented Interfaces:
FieldValueProvider,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class SpELValueProvider
extends Object
implements FieldValueProvider, org.springframework.context.ApplicationContextAware
Parses spring expression value set for indexed property and produces collection of field values
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected org.springframework.expression.EvaluationContextgetFieldValues(IndexConfig indexConfig, IndexedProperty indexedProperty, Object model) Returns a collection ofFieldValueof a given indexedProperty that are fetched from the model based on the indexConfig.protected Collection<FieldValue>getFieldValuesForFieldNames(Collection<String> fieldNames, Object o) protected StringgetSpringExpression(IndexedProperty indexedProperty) protected Collectionresolve(IndexedProperty indexedProperty, Object value, String qualifier) protected Collection<FieldValue>resolveValuesForCollection(Collection value, Collection<String> fieldNames) voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) voidsetCommonI18NService(CommonI18NService commonI18NService) voidsetConfigurationService(ConfigurationService configurationService) voidsetFieldNameProvider(FieldNameProvider fieldNameProvider) voidsetParser(org.springframework.expression.ExpressionParser parser)
-
Constructor Details
-
SpELValueProvider
public SpELValueProvider()
-
-
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- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
createEvaluationContext
-
resolve
-
resolveValuesForCollection
protected Collection<FieldValue> resolveValuesForCollection(Collection value, Collection<String> fieldNames) -
getFieldValuesForFieldNames
protected Collection<FieldValue> getFieldValuesForFieldNames(Collection<String> fieldNames, Object o) -
getSpringExpression
-
setConfigurationService
-
setFieldNameProvider
-
setCommonI18NService
-
setParser
public void setParser(org.springframework.expression.ExpressionParser parser) -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-