@Manager public class DefaultLanguageManager extends Object implements LanguageManager
Default language manager which acts as a proxy between the clients (LanguageController
) and the LanguageService
Constructor and Description |
---|
DefaultLanguageManager(LanguageService languageService,
UserManager userManager,
String[] defaultLanguages) |
Modifier and Type | Method and Description |
---|---|
Language |
getLanguageByCodeWithCurrentUserLocale(String languageCode)
Returns the language with the name in the current user locale specified by the language code.
|
com.google.common.collect.ImmutableSet<Language> |
getLanguagesByNamePrefixWithCurrentUserLocale(String namePrefix)
Returns the languages with the names in the current user locale filtered by the
namePrefix . |
com.google.common.collect.ImmutableSet<Language> |
getLanguagesWithCurrentUserLocale()
Returns the languages with the names in the current user locale.
|
public DefaultLanguageManager(LanguageService languageService, UserManager userManager, String[] defaultLanguages)
public com.google.common.collect.ImmutableSet<Language> getLanguagesWithCurrentUserLocale()
LanguageManager
Returns the languages with the names in the current user locale.
getLanguagesWithCurrentUserLocale
in interface LanguageManager
public com.google.common.collect.ImmutableSet<Language> getLanguagesByNamePrefixWithCurrentUserLocale(String namePrefix)
LanguageManager
Returns the languages with the names in the current user locale filtered by the namePrefix
.
getLanguagesByNamePrefixWithCurrentUserLocale
in interface LanguageManager
namePrefix
- the name prefix.public Language getLanguageByCodeWithCurrentUserLocale(String languageCode)
LanguageManager
Returns the language with the name in the current user locale specified by the language code.
getLanguageByCodeWithCurrentUserLocale
in interface LanguageManager
languageCode
- the language code by which the Language
should be returnedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.