Class NoOpQualifierProvider
java.lang.Object
de.hybris.platform.solrfacetsearch.provider.impl.NoOpQualifierProvider
- All Implemented Interfaces:
QualifierProvider
Dummy qualifier provider for the cases where no qualifiers are required.
-
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.
-
Constructor Details
-
NoOpQualifierProvider
public NoOpQualifierProvider()
-
-
Method Details
-
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
-