com.endeca.portal.mdex
Class MDEXLocaleUtil
java.lang.Object
com.endeca.portal.mdex.MDEXLocaleUtil
public class MDEXLocaleUtil
- extends java.lang.Object
The purpose of this method is to translate the locale string used by Liferay to the
locale string used by the MDEX. For the locales supported in version 3.0, the only
difference is in the strings for cn and tw locales, but conversions for more locales may
need to be added in the future when we support new locales.
This method will default to en if no portlet request is given
Method Summary |
static java.lang.String |
getMDEXLanguageId(java.util.Locale locale)
This string is used to send the current locale to the Endeca
Server. |
static java.lang.String |
getMDEXLanguageId(javax.portlet.PortletRequest request)
This string is used to send the current locale to the Endeca
Server. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MDEX_EN_LOCALE
public static final java.lang.String MDEX_EN_LOCALE
- See Also:
- Constant Field Values
MDEXLocaleUtil
public MDEXLocaleUtil()
getMDEXLanguageId
public static java.lang.String getMDEXLanguageId(java.util.Locale locale)
- This string is used to send the current locale to the Endeca
Server.
- Parameters:
locale
-
- Returns:
getMDEXLanguageId
public static java.lang.String getMDEXLanguageId(javax.portlet.PortletRequest request)
- This string is used to send the current locale to the Endeca
Server.
- Parameters:
request
-
- Returns: