public class InfranetLocaleManager extends InfranetCachedData
InfranetCachedData.InstanceBuilder
Modifier and Type | Field and Description |
---|---|
static int |
LocaleExactMatch
The specified locale must be an exact match of the Portal locale
(i.e.
|
static int |
LocaleExactMatchThenLangMatch
First try to do an exact match.
|
static int |
LocaleLangMatch
The language portion of specified locale can match any Portal
locale that has the same language.
|
m_Connection
Modifier | Constructor and Description |
---|---|
protected |
InfranetLocaleManager(PortalContext connection)
Construct an Portal Locale Manager object.
|
Modifier and Type | Method and Description |
---|---|
static InfranetLocaleManager |
getInstance(PortalContext connection)
Get the one and only instance of this class.
|
static InfranetLocaleManager |
getInstance(PortalContext connection,
boolean rebuild)
Get the one and only instance of this class.
|
InfranetLocaleData |
getLocaleData(String infranetLocale,
Locale javaTextLocale,
int matchType)
Return the "locale data" for the specified Portal locale.
|
InfranetLocaleData |
getLocaleData(String infranetLocale,
String infranetTextLocale,
int matchType)
Return the "locale data" for the specified Portal locale.
|
Enumeration |
getLocales(Locale javaLocale,
int matchType)
Return the list of all of the locales supported by Portal with
the locale description text in the specified locale.
|
Enumeration |
getLocales(String infranetTextLocale,
int matchType)
Return the list of all of the locales supported by Portal with
the locale description text in the specified locale.
|
InfranetLocaleData[] |
getLocalesAsArray(Locale javaLocale,
int matchType)
Return the array of all of the locales supported by Portal with
the locale description text in the specified locale.
|
InfranetLocaleData[] |
getLocalesAsArray(String infranetTextLocale,
int matchType)
Return the array of all of the locales supported by Portal with
the locale description text in the specified locale.
|
int |
getNumLocales()
Return the number of the locales supported by Portal.
|
String |
MapInfranetLocaleToJavaLocale(String infranetLocale)
Map the Portal locale string (language and country) to the
corresponding Java locale string (language and country).
|
String |
MapJavaLocaleToInfranetLocale(String javaLocale)
Map the Java locale string (language and country) to the corresponding
Portal locale string (language and country).
|
buildKey, buildKeySimple, createDataManagers, getInstanceImpl, getInstanceImplSimple
public static final int LocaleExactMatch
public static final int LocaleLangMatch
public static final int LocaleExactMatchThenLangMatch
protected InfranetLocaleManager(PortalContext connection)
connection
- An active connection to Portal.public static InfranetLocaleManager getInstance(PortalContext connection)
connection
- An active connection to Portal.public static InfranetLocaleManager getInstance(PortalContext connection, boolean rebuild)
connection
- An active connection to Portal.rebuild
- If this flag is TRUE then the reference to the existing
instance will be set to null and a new instance will be created. This
will cause the data to be refreshed.public Enumeration getLocales(String infranetTextLocale, int matchType)
infranetTextLocale
- The Portal locale to return the locale
description strings in (English, French, etc.)matchType
- Using the specified locale do an exact match, a
match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public Enumeration getLocales(Locale javaLocale, int matchType)
javaLocale
- A Java locale object.matchType
- Using the specified locale do an exact match, a
match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public InfranetLocaleData[] getLocalesAsArray(String infranetTextLocale, int matchType)
infranetTextLocale
- The Portal locale to return the locale
description strings in (English, French, etc.)matchType
- Using the specified locale do an exact match, a
match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public InfranetLocaleData[] getLocalesAsArray(Locale javaLocale, int matchType)
javaLocale
- The Java locale object which determines what
language the locale descriptions will be returned,matchType
- Using the specified locale do an exact match, a
match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public InfranetLocaleData getLocaleData(String infranetLocale, String infranetTextLocale, int matchType)
infranetLocale
- The Portal locale to return the Portal
locale data for.infranetTextLocale
- The Portal locale to return the locale
description strings in (English, French, etc.)matchType
- Using the specified "text" locale do an exact match,
a match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public InfranetLocaleData getLocaleData(String infranetLocale, Locale javaTextLocale, int matchType)
infranetLocale
- The Portal locale to return the Portal
locale data for.javaTextLocale
- The locale to return the locale description
strings in (English, French, etc.)matchType
- Using the specified "text" locale do an exact match,
a match by language only, or an exact match followed by a match by
language only. Can be one of the following constants:
LocaleExactMatch, LocaleLangMatch, LocaleExactMatchThenLangMatch.public int getNumLocales()
public String MapJavaLocaleToInfranetLocale(String javaLocale)
javaLocale
- The Java locale string to find the corresponding
Portal locale string for.public String MapInfranetLocaleToJavaLocale(String infranetLocale)
infranetLocale
- The Portal locale string to find the
corresponding Java locale string for.Copyright © 2003, 2023, Oracle and/or its affiliates.