Class DefaultFacetSearchConfigService
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.config.impl.DefaultFacetSearchConfigService
-
- All Implemented Interfaces:
FacetSearchConfigService
public class DefaultFacetSearchConfigService extends java.lang.Object implements FacetSearchConfigService
Default implementation ofFacetSearchConfigServicewhich uses cache
-
-
Constructor Summary
Constructors Constructor Description DefaultFacetSearchConfigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetSearchConfiggetConfiguration(CatalogVersionModel catalogVersion)Searches for the configuration for the specified catalog version.FacetSearchConfiggetConfiguration(java.lang.String name)Returns the configuration by nameFacetSearchConfigCacheServicegetFacetSearchConfigCacheService()java.util.List<IndexedProperty>resolveIndexedProperties(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<java.lang.String> indexedPropertiesIds)Resolves indexed properties by ids.IndexedTyperesolveIndexedType(FacetSearchConfig facetSearchConfig, java.lang.String indexedTypeName)Resolves indexed type by name.voidsetFacetSearchConfigCacheService(FacetSearchConfigCacheService facetSearchConfigCacheService)voidsetFacetSearchConfigMapper(ma.glasnost.orika.impl.ConfigurableMapper facetSearchConfigMapper)
-
-
-
Method Detail
-
getConfiguration
public FacetSearchConfig getConfiguration(java.lang.String name) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigServiceReturns the configuration by name- Specified by:
getConfigurationin interfaceFacetSearchConfigService- Parameters:
name- - Name of configuration- Returns:
FacetSearchConfigobject- Throws:
FacetConfigServiceException- if an error occurs
-
getConfiguration
public FacetSearchConfig getConfiguration(CatalogVersionModel catalogVersion) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigServiceSearches for the configuration for the specified catalog version.- Specified by:
getConfigurationin interfaceFacetSearchConfigService- Parameters:
catalogVersion- the catalog version to be searched- Returns:
FacetSearchConfigif it is found. If more than one configurations can be found, return the first one. If it cannot be found, return null.- Throws:
FacetConfigServiceException- if an error occurs
-
resolveIndexedType
public IndexedType resolveIndexedType(FacetSearchConfig facetSearchConfig, java.lang.String indexedTypeName) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigServiceResolves indexed type by name.- Specified by:
resolveIndexedTypein interfaceFacetSearchConfigService- Parameters:
facetSearchConfig- facet search configuration.indexedTypeName- name of indexed type- Returns:
IndexedType- Throws:
FacetConfigServiceException- if an error occurs
-
resolveIndexedProperties
public java.util.List<IndexedProperty> resolveIndexedProperties(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<java.lang.String> indexedPropertiesIds) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigServiceResolves indexed properties by ids.- Specified by:
resolveIndexedPropertiesin interfaceFacetSearchConfigService- Parameters:
facetSearchConfig- facet search configuration.indexedType- indexed typeindexedPropertiesIds- list of indexed properties ids- Returns:
- List of
IndexedProperty - Throws:
FacetConfigServiceException- if an error occurs
-
getFacetSearchConfigCacheService
public FacetSearchConfigCacheService getFacetSearchConfigCacheService()
-
setFacetSearchConfigCacheService
public void setFacetSearchConfigCacheService(FacetSearchConfigCacheService facetSearchConfigCacheService)
-
setFacetSearchConfigMapper
public void setFacetSearchConfigMapper(ma.glasnost.orika.impl.ConfigurableMapper facetSearchConfigMapper)
-
-