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.StringFROM_REGEXP_TEMPLATEprotected static java.lang.StringLANGUAGE_PREFIXprotected static java.lang.StringQUERY_VALUE_SEPARATORprotected static java.lang.StringREPLACABLE_LOCALE_REGEXP_TEMPLATE
-
Constructor Summary
Constructors Constructor Description DefaultBackofficeFieldNamePostProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringprocess(SearchQuery searchQuery, java.util.Locale conditionLocale, java.lang.String fieldName)Uses locale for fieldName conversionprotected LanguageModelretrieveLanguageModel(java.util.Locale locale)voidsetCommonI18NService(CommonI18NService commonI18NService)voidsetI18nService(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:FieldNamePostProcessorUses locale for fieldName conversion- Specified by:
processin interfaceFieldNamePostProcessor- Returns:
- converted fieldName
-
retrieveLanguageModel
protected LanguageModel retrieveLanguageModel(java.util.Locale locale)
-
setCommonI18NService
public void setCommonI18NService(CommonI18NService commonI18NService)
-
setI18nService
public void setI18nService(I18NService i18nService)
-
-