public class LanguageQualifierProvider extends java.lang.Object implements QualifierProvider
The available qualifiers will be created based on the configured languages for the index configuration (see
IndexConfig.getLanguages()).
It supports the following types:
LanguageModel
Locale
| Modifier and Type | Class and Description |
|---|---|
protected static class |
LanguageQualifierProvider.LanguageQualifier |
| Constructor and Description |
|---|
LanguageQualifierProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
applyQualifier(Qualifier qualifier)
Applies the qualifier passed as parameter.
|
boolean |
canApply(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.
|
CommonI18NService |
getCommonI18NService() |
Qualifier |
getCurrentQualifier()
Returns the current qualifier.
|
java.util.Set<java.lang.Class<?>> |
getSupportedTypes()
Returns all the supported types by this provider.
|
void |
setCommonI18NService(CommonI18NService commonI18NService) |
public CommonI18NService getCommonI18NService()
public void setCommonI18NService(CommonI18NService commonI18NService)
public java.util.Set<java.lang.Class<?>> getSupportedTypes()
QualifierProvidergetSupportedTypes in interface QualifierProviderpublic java.util.Collection<Qualifier> getAvailableQualifiers(FacetSearchConfig facetSearchConfig, IndexedType indexedType)
QualifierProvidergetAvailableQualifiers in interface QualifierProviderfacetSearchConfig - - the facet search configurationindexedType - - the indexed typepublic boolean canApply(IndexedProperty indexedProperty)
QualifierProvidercanApply in interface QualifierProviderindexedProperty - - the indexed propertytrue if qualifiers can be used, false otherwisepublic void applyQualifier(Qualifier qualifier)
QualifierProviderapplyQualifier in interface QualifierProviderqualifier - - the Qualifier to be appliedpublic Qualifier getCurrentQualifier()
QualifierProvidergetCurrentQualifier in interface QualifierProviderCopyright © 2018 SAP SE. All Rights Reserved.