Class LocaleHelper
- java.lang.Object
-
- com.broadleafcommerce.search.core.service.locale.LocaleHelper
-
public class LocaleHelper extends Object
Helper for retrieving the locale String value for an indexable type and context.
-
-
Constructor Summary
Constructors Constructor Description LocaleHelper(com.broadleafcommerce.translation.mapping.ContextLocaleHelper contextLocaleHelper)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.broadleafcommerce.translation.mapping.ContextLocaleHelper
getContextLocaleHelper()
String
getLocale(com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.search.api.type.IndexableType indexableType)
Get the String representation of a locale for the context and indexable type.
-
-
-
Method Detail
-
getLocale
@Nullable public String getLocale(@Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context, com.broadleafcommerce.search.api.type.IndexableType indexableType)
Get the String representation of a locale for the context and indexable type.- Parameters:
context
- The context information surrounding sandboxing/multitenant stateindexableType
- the indexable type in this context- Returns:
- the locale String
-
getContextLocaleHelper
protected com.broadleafcommerce.translation.mapping.ContextLocaleHelper getContextLocaleHelper()
-
-