|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@PublicApi public interface LocaleManager
Provides Locale information for this JIRA instance.
| Field Summary | |
|---|---|
static String |
DEFAULT_LOCALE
The default locale id. |
| Method Summary | |
|---|---|
Set<Locale> |
getInstalledLocales()
Returns a set of locales supported by this JIRA instance. |
Map<String,String> |
getInstalledLocalesWithDefault(Locale defaultLocale,
I18nHelper i18nHelper)
Returns a mapping of localeString to its displayname. |
Locale |
getLocale(String locale)
Given a string, return the corresponding Locale. |
Locale |
getLocaleFor(ApplicationUser user)
Returns the locale for the given user. |
void |
validateUserLocale(com.atlassian.crowd.embedded.api.User loggedInUser,
String locale,
ErrorCollection errorCollection)
Given a user entered locale string this method ensures that it is in fact a locale that exists in this instance |
| Field Detail |
|---|
static final String DEFAULT_LOCALE
| Method Detail |
|---|
Set<Locale> getInstalledLocales()
Map<String,String> getInstalledLocalesWithDefault(Locale defaultLocale,
I18nHelper i18nHelper)
defaultLocale - The locale to use as the defaulti18nHelper - Required to internationalize the 'Default'
Locale getLocale(String locale)
locale - Locale in string form
Locale objectLocale getLocaleFor(ApplicationUser user)
user - The user
void validateUserLocale(com.atlassian.crowd.embedded.api.User loggedInUser,
String locale,
ErrorCollection errorCollection)
loggedInUser - The user performing the operationlocale - the locale String to validate (e.g. en_UK)errorCollection - Error collection to record errors in
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||