public class MockFacetSearchConfigService extends Object implements FacetSearchConfigService
| Constructor and Description |
|---|
MockFacetSearchConfigService() |
public FacetSearchConfig getConfiguration(String name)
FacetSearchConfigServicegetConfiguration in interface FacetSearchConfigServicename - - Name of configurationFacetSearchConfig objectpublic FacetSearchConfig getConfiguration(CatalogVersionModel catalogVersion)
FacetSearchConfigServicegetConfiguration in interface FacetSearchConfigServicecatalogVersion - the catalog version to be searched.FacetSearchConfig if it is found. If more than one configurations can be found, return the first
one. If it cannot be found, return null.public IndexedType resolveIndexedType(FacetSearchConfig facetSearchConfig, String indexedTypeName) throws FacetConfigServiceException
FacetSearchConfigServiceresolveIndexedType in interface FacetSearchConfigServicefacetSearchConfig - facet search configuration.indexedTypeName - name of indexed typeIndexedTypeFacetConfigServiceExceptionpublic List<IndexedProperty> resolveIndexedProperties(FacetSearchConfig facetSearchConfig, IndexedType indexedType, Collection<String> indexedPropertiesIds) throws FacetConfigServiceException
FacetSearchConfigServiceresolveIndexedProperties in interface FacetSearchConfigServicefacetSearchConfig - facet search configuration.indexedType - indexed typeindexedPropertiesIds - list of indexed properties idsIndexedPropertyFacetConfigServiceExceptionprotected Map<String,FacetSearchConfig> createConfigs()
protected FacetSearchConfig createPoductSearchConfig()
protected IndexConfig createProductIndexConfig()
protected Collection<CurrencyModel> getCurrencies()
protected Collection<LanguageModel> getLanguages()
protected Collection<CatalogVersionModel> getCatalogVersions()
protected Collection<IndexedType> createIndexedTypes()
protected IndexedType createProductIndexType()
protected Collection<IndexedProperty> createIndexedPropertiesForProduct()
protected IndexedProperty createIndexProperty(String propertyName, String type, boolean facet, List<ValueRangeSet> valueRangeSets, boolean localized, FieldValueProvider fieldValueProvider)
public void setI18nService(I18NService i18nService)
i18nService - the i18nService to setpublic void setCatalogService(CatalogService catalogService)
catalogService - the catalogService to setpublic void setTypeService(TypeService typeService)
typeService - the typeService to setpublic void setProductPriceValueProvider(FieldValueProvider productPriceValueProvider)
productPriceValueProvider - the productPriceValueProvider to setpublic void setModelPropertyFieldValueProvider(FieldValueProvider modelPropertyFieldValueProvider)
modelPropertyFieldValueProvider - the modelPropertyFieldValueProvider to setpublic void setProductIdentityProvider(IdentityProvider productIdentityProvider)
productIdentityProvider - the productIdentityProvider to setCopyright © 2017 SAP SE. All Rights Reserved.