Class DemoIndexedTypeFieldsValuesProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.DemoIndexedTypeFieldsValuesProvider
-
- All Implemented Interfaces:
IndexedTypeFieldsValuesProvider
public class DemoIndexedTypeFieldsValuesProvider extends java.lang.Object implements IndexedTypeFieldsValuesProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringCATEGORY_PROPERTYprotected static java.lang.StringCODE_PROPERTYprotected static java.lang.StringMANUFACTURER_NAME_PROPERTYprotected static java.lang.StringNAME_PROPERTYprotected static java.lang.StringSUPER_CATEGORIES_ATTR_NAME
-
Constructor Summary
Constructors Constructor Description DemoIndexedTypeFieldsValuesProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.Collection<FieldValue>getCategoryFieldsValues(java.lang.Object model)protected java.lang.ObjectgetCategoryValue(CategoryModel category)java.util.Set<java.lang.String>getFacets()Returns set of facets names that are provided.java.util.Map<java.lang.String,java.lang.String>getFieldNamesMapping()Returns field to index field names mapping for the properties provided.java.util.Collection<FieldValue>getFieldValues(IndexConfig indexConfig, java.lang.Object model)Returns a collection ofFieldValueof a given model that are fetched from it based on the indexConfig and customized implemented logic.protected java.util.Collection<FieldValue>getPropertyFieldsValues(java.lang.Object model, java.lang.String propertyName)protected java.lang.ObjectgetPropertyValue(java.lang.Object model, java.lang.String propertyName)voidsetModelService(ModelService modelService)
-
-
-
Field Detail
-
NAME_PROPERTY
protected static final java.lang.String NAME_PROPERTY
- See Also:
- Constant Field Values
-
CODE_PROPERTY
protected static final java.lang.String CODE_PROPERTY
- See Also:
- Constant Field Values
-
CATEGORY_PROPERTY
protected static final java.lang.String CATEGORY_PROPERTY
- See Also:
- Constant Field Values
-
MANUFACTURER_NAME_PROPERTY
protected static final java.lang.String MANUFACTURER_NAME_PROPERTY
- See Also:
- Constant Field Values
-
SUPER_CATEGORIES_ATTR_NAME
protected static final java.lang.String SUPER_CATEGORIES_ATTR_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
getFieldValues
public java.util.Collection<FieldValue> getFieldValues(IndexConfig indexConfig, java.lang.Object model) throws FieldValueProviderException
Description copied from interface:IndexedTypeFieldsValuesProviderReturns a collection ofFieldValueof a given model that are fetched from it based on the indexConfig and customized implemented logic. Supports multi-language and multi-currencies.- Specified by:
getFieldValuesin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Collection<
FieldValue> - Throws:
FieldValueProviderException
-
getCategoryFieldsValues
protected java.util.Collection<FieldValue> getCategoryFieldsValues(java.lang.Object model)
-
getPropertyFieldsValues
protected java.util.Collection<FieldValue> getPropertyFieldsValues(java.lang.Object model, java.lang.String propertyName)
-
setModelService
public void setModelService(ModelService modelService)
- Parameters:
modelService- the modelService to set
-
getFacets
public java.util.Set<java.lang.String> getFacets()
Description copied from interface:IndexedTypeFieldsValuesProviderReturns set of facets names that are provided.- Specified by:
getFacetsin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Set
-
getFieldNamesMapping
public java.util.Map<java.lang.String,java.lang.String> getFieldNamesMapping()
Description copied from interface:IndexedTypeFieldsValuesProviderReturns field to index field names mapping for the properties provided.- Specified by:
getFieldNamesMappingin interfaceIndexedTypeFieldsValuesProvider- Returns:
- Map
-
getCategoryValue
protected java.lang.Object getCategoryValue(CategoryModel category)
-
getPropertyValue
protected java.lang.Object getPropertyValue(java.lang.Object model, java.lang.String propertyName)
-
-