Class CurrencyQualifierProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.CurrencyQualifierProvider
- All Implemented Interfaces:
QualifierProvider
- Direct Known Subclasses:
CurrencyQualifierProvider
Qualifier provider for currencies.
The available qualifiers will be created based on the configured currencies for the index configuration (see
IndexConfig.getCurrencies()).
It supports the following types:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyQualifier(Qualifier qualifier) Applies the qualifier passed as parameter.booleancanApply(IndexedProperty indexedProperty) Checks if qualifiers can be applied/used with the indexed property passed as parameter.getAvailableQualifiers(FacetSearchConfig facetSearchConfig, IndexedType indexedType) Returns all the possible qualifiers for a given index configuration and indexed type.Returns the current qualifier.Returns all the supported types by this provider.voidsetCommonI18NService(CommonI18NService commonI18NService)
-
Constructor Details
-
CurrencyQualifierProvider
public CurrencyQualifierProvider()
-
-
Method Details
-
getCommonI18NService
-
setCommonI18NService
-
getSupportedTypes
Description copied from interface:QualifierProviderReturns all the supported types by this provider.- Specified by:
getSupportedTypesin interfaceQualifierProvider- Returns:
- the supported types
-
getAvailableQualifiers
public Collection<Qualifier> getAvailableQualifiers(FacetSearchConfig facetSearchConfig, IndexedType indexedType) Description copied from interface:QualifierProviderReturns all the possible qualifiers for a given index configuration and indexed type.- Specified by:
getAvailableQualifiersin interfaceQualifierProvider- Parameters:
facetSearchConfig- - the facet search configurationindexedType- - the indexed type- Returns:
- the available qualifiers
-
canApply
Description copied from interface:QualifierProviderChecks if qualifiers can be applied/used with the indexed property passed as parameter.- Specified by:
canApplyin interfaceQualifierProvider- Parameters:
indexedProperty- - the indexed property- Returns:
trueif qualifiers can be used,falseotherwise
-
applyQualifier
Description copied from interface:QualifierProviderApplies the qualifier passed as parameter. This normally consists in setting some attributes on the session, e.g. by calling a service to set the current session language, currency, etc.- Specified by:
applyQualifierin interfaceQualifierProvider- Parameters:
qualifier- - theQualifierto be applied
-
getCurrentQualifier
Description copied from interface:QualifierProviderReturns the current qualifier. This normally consists in getting some attributes from the session and creating the corresponding qualifier.- Specified by:
getCurrentQualifierin interfaceQualifierProvider- Returns:
- the current qualifier
-