|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.plumtree.portaluiinfrastructure.login.PTLocaleMap
public class PTLocaleMap
PTLocaleMap is used to facilitate custom mapping of one locale to another locale by user. This mappings can be set in LocaleMap.xml in i18n directory of WCI installation. When user specifies a custom mapping from a particular locale to a different locale. This class stores that mapping and it can be used by WCI to get the mapped locale to be set for the user.
Method Summary | |
---|---|
static PTLocaleMap |
GetInstance()
This static method returns singleton instance of PTLocaleMap. |
java.lang.String |
GetMappedLocale(java.lang.String locale)
This method takes input a locale string and returns mapped locale for the input locale. |
boolean |
IsLocaleMapped(java.lang.String locale)
This method takes input a locale and returns true if that locale has mapping, if not or if there is no LocaleMapping.xml file in WCI i18n directory then it returns false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static PTLocaleMap GetInstance()
public java.lang.String GetMappedLocale(java.lang.String locale)
locale
- from locale for which there is a mapping
public boolean IsLocaleMapped(java.lang.String locale)
locale
- from locale for which there is a mapping
|
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |