com.endeca.portal.mdex
Class LocaleUtil

java.lang.Object
  extended by com.endeca.portal.mdex.LocaleUtil

public class LocaleUtil
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


Field Summary
static java.lang.String MDEX_EN_LOCALE
           
 
Constructor Summary
LocaleUtil()
           
 
Method Summary
static java.lang.String getMDEXLanguageId(javax.portlet.PortletRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MDEX_EN_LOCALE

public static final java.lang.String MDEX_EN_LOCALE
See Also:
Constant Field Values
Constructor Detail

LocaleUtil

public LocaleUtil()
Method Detail

getMDEXLanguageId

public static java.lang.String getMDEXLanguageId(javax.portlet.PortletRequest request)