public class DemoIndexedTypeFieldsValuesProvider extends Object implements IndexedTypeFieldsValuesProvider
| Constructor and Description |
|---|
DemoIndexedTypeFieldsValuesProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<FieldValue> |
getCategoryFieldsValues(Object model) |
protected Object |
getCategoryValue(CategoryModel category) |
Set<String> |
getFacets()
Returns set of facets names that are provided.
|
Map<String,String> |
getFieldNamesMapping()
Returns field to index field names mapping for the properties provided.
|
Collection<FieldValue> |
getFieldValues(IndexConfig indexConfig,
Object model)
Returns a collection of
FieldValue of a given model that are fetched from it based on the indexConfig and
customized implemented logic. |
protected Collection<FieldValue> |
getPropertyFieldsValues(Object model,
String propertyName) |
protected Object |
getPropertyValue(Object model,
String propertyName) |
void |
setModelService(ModelService modelService) |
public Collection<FieldValue> getFieldValues(IndexConfig indexConfig, Object model) throws FieldValueProviderException
IndexedTypeFieldsValuesProviderFieldValue of a given model that are fetched from it based on the indexConfig and
customized implemented logic. Supports multi-language and multi-currencies.getFieldValues in interface IndexedTypeFieldsValuesProviderFieldValue>FieldValueProviderExceptionprotected Collection<FieldValue> getCategoryFieldsValues(Object model)
protected Collection<FieldValue> getPropertyFieldsValues(Object model, String propertyName)
public void setModelService(ModelService modelService)
modelService - the modelService to setpublic Set<String> getFacets()
IndexedTypeFieldsValuesProvidergetFacets in interface IndexedTypeFieldsValuesProviderpublic Map<String,String> getFieldNamesMapping()
IndexedTypeFieldsValuesProvidergetFieldNamesMapping in interface IndexedTypeFieldsValuesProviderprotected Object getCategoryValue(CategoryModel category)
Copyright © 2017 SAP SE. All Rights Reserved.