@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()
LanguageManagerReturns the languages with the names in the current user locale.
getLanguagesWithCurrentUserLocale in interface LanguageManagerpublic com.google.common.collect.ImmutableSet<Language> getLanguagesByNamePrefixWithCurrentUserLocale(String namePrefix)
LanguageManagerReturns the languages with the names in the current user locale filtered by the namePrefix.
getLanguagesByNamePrefixWithCurrentUserLocale in interface LanguageManagernamePrefix - the name prefix.public Language getLanguageByCodeWithCurrentUserLocale(String languageCode)
LanguageManagerReturns the language with the name in the current user locale specified by the language code.
getLanguageByCodeWithCurrentUserLocale in interface LanguageManagerlanguageCode - the language code by which the Language should be returnedCopyright © 2010 - 2018 edorasware ag. All Rights Reserved.