Class DefaultBackofficeFieldNamePostProcessor
- java.lang.Object
-
- com.hybris.backoffice.solrsearch.populators.DefaultBackofficeFieldNamePostProcessor
-
- All Implemented Interfaces:
FieldNamePostProcessor
public class DefaultBackofficeFieldNamePostProcessor extends java.lang.Object implements FieldNamePostProcessor
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.String
FROM_REGEXP_TEMPLATE
protected static java.lang.String
LANGUAGE_PREFIX
protected static java.lang.String
QUERY_VALUE_SEPARATOR
protected static java.lang.String
REPLACABLE_LOCALE_REGEXP_TEMPLATE
-
Constructor Summary
Constructors Constructor Description DefaultBackofficeFieldNamePostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
process(SearchQuery searchQuery, java.util.Locale conditionLocale, java.lang.String fieldName)
Uses locale for fieldName conversionprotected LanguageModel
retrieveLanguageModel(java.util.Locale locale)
void
setCommonI18NService(CommonI18NService commonI18NService)
void
setI18nService(I18NService i18nService)
-
-
-
Field Detail
-
FROM_REGEXP_TEMPLATE
protected static final java.lang.String FROM_REGEXP_TEMPLATE
- See Also:
- Constant Field Values
-
LANGUAGE_PREFIX
protected static final java.lang.String LANGUAGE_PREFIX
- See Also:
- Constant Field Values
-
REPLACABLE_LOCALE_REGEXP_TEMPLATE
protected static final java.lang.String REPLACABLE_LOCALE_REGEXP_TEMPLATE
- See Also:
- Constant Field Values
-
QUERY_VALUE_SEPARATOR
protected static final java.lang.String QUERY_VALUE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public java.lang.String process(SearchQuery searchQuery, java.util.Locale conditionLocale, java.lang.String fieldName)
Description copied from interface:FieldNamePostProcessor
Uses locale for fieldName conversion- Specified by:
process
in interfaceFieldNamePostProcessor
- Returns:
- converted fieldName
-
retrieveLanguageModel
protected LanguageModel retrieveLanguageModel(java.util.Locale locale)
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setI18nService
public void setI18nService(I18NService i18nService)
-
-