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 ofFacetSearchConfigService
which uses cache
-
-
Constructor Summary
Constructors Constructor Description DefaultFacetSearchConfigService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FacetSearchConfig
getConfiguration(CatalogVersionModel catalogVersion)
Searches for the configuration for the specified catalog version.FacetSearchConfig
getConfiguration(java.lang.String name)
Returns the configuration by nameFacetSearchConfigCacheService
getFacetSearchConfigCacheService()
java.util.List<IndexedProperty>
resolveIndexedProperties(FacetSearchConfig facetSearchConfig, IndexedType indexedType, java.util.Collection<java.lang.String> indexedPropertiesIds)
Resolves indexed properties by ids.IndexedType
resolveIndexedType(FacetSearchConfig facetSearchConfig, java.lang.String indexedTypeName)
Resolves indexed type by name.void
setFacetSearchConfigCacheService(FacetSearchConfigCacheService facetSearchConfigCacheService)
void
setFacetSearchConfigMapper(ma.glasnost.orika.impl.ConfigurableMapper facetSearchConfigMapper)
-
-
-
Method Detail
-
getConfiguration
public FacetSearchConfig getConfiguration(java.lang.String name) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigService
Returns the configuration by name- Specified by:
getConfiguration
in interfaceFacetSearchConfigService
- Parameters:
name
- - Name of configuration- Returns:
FacetSearchConfig
object- Throws:
FacetConfigServiceException
- if an error occurs
-
getConfiguration
public FacetSearchConfig getConfiguration(CatalogVersionModel catalogVersion) throws FacetConfigServiceException
Description copied from interface:FacetSearchConfigService
Searches for the configuration for the specified catalog version.- Specified by:
getConfiguration
in interfaceFacetSearchConfigService
- Parameters:
catalogVersion
- the catalog version to be searched- Returns:
FacetSearchConfig
if 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:FacetSearchConfigService
Resolves indexed type by name.- Specified by:
resolveIndexedType
in 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:FacetSearchConfigService
Resolves indexed properties by ids.- Specified by:
resolveIndexedProperties
in 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)
-
-