Class NoOpQualifierProvider
- java.lang.Object
-
- de.hybris.platform.solrfacetsearch.provider.impl.NoOpQualifierProvider
-
- All Implemented Interfaces:
QualifierProvider
public class NoOpQualifierProvider extends java.lang.Object implements QualifierProvider
Dummy qualifier provider for the cases where no qualifiers are required.
-
-
Constructor Summary
Constructors Constructor Description NoOpQualifierProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyQualifier(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.java.util.Collection<Qualifier>getAvailableQualifiers(FacetSearchConfig facetSearchConfig, IndexedType indexedType)Returns all the possible qualifiers for a given index configuration and indexed type.QualifiergetCurrentQualifier()Returns the current qualifier.java.util.Set<java.lang.Class<?>>getSupportedTypes()Returns all the supported types by this provider.
-
-
-
Method Detail
-
getSupportedTypes
public java.util.Set<java.lang.Class<?>> getSupportedTypes()
Description copied from interface:QualifierProviderReturns all the supported types by this provider.- Specified by:
getSupportedTypesin interfaceQualifierProvider- Returns:
- the supported types
-
getAvailableQualifiers
public java.util.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
public boolean canApply(IndexedProperty indexedProperty)
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
public void applyQualifier(Qualifier qualifier)
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
public Qualifier 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
-
-