Interface CommerceCommonI18NService
-
- All Known Implementing Classes:
DefaultCommerceCommonI18NService
public interface CommerceCommonI18NServiceInterface to return list of currencies, based on sites and stores dependencies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<CountryModel>getAllCountries()Method for getting list of countries stored as a catalog version property.java.util.List<CurrencyModel>getAllCurrencies()Method for getting all currencies for the current store.java.util.Collection<LanguageModel>getAllLanguages()Method for getting list of languages stored as a catalog version property.CurrencyModelgetCurrentCurrency()Get the current currencyLanguageModelgetCurrentLanguage()Get the current languagejava.util.LocalegetCurrentLocale()Get the current localeCurrencyModelgetDefaultCurrency()Method for getting the default currency for the current store.LanguageModelgetDefaultLanguage()Method for getting the default language for the current store.java.util.LocalegetLocaleForLanguage(LanguageModel language)Get the site specific locale for the specified languagevoidsetCurrentCurrency(CurrencyModel currency)Set current currency.voidsetCurrentLanguage(LanguageModel language)Set current language.
-
-
-
Method Detail
-
getAllCurrencies
java.util.List<CurrencyModel> getAllCurrencies()
Method for getting all currencies for the current store.- Returns:
- list of currencies supported.
-
getAllLanguages
java.util.Collection<LanguageModel> getAllLanguages()
Method for getting list of languages stored as a catalog version property.- Returns:
- list of languages supported.
-
getAllCountries
java.util.Collection<CountryModel> getAllCountries()
Method for getting list of countries stored as a catalog version property.- Returns:
- list of countries supported.
-
getDefaultLanguage
LanguageModel getDefaultLanguage()
Method for getting the default language for the current store.- Returns:
- the default language.
-
getDefaultCurrency
CurrencyModel getDefaultCurrency()
Method for getting the default currency for the current store.- Returns:
- the default currency.
-
getCurrentLanguage
LanguageModel getCurrentLanguage()
Get the current language- Returns:
- the current language
-
setCurrentLanguage
void setCurrentLanguage(LanguageModel language)
Set current language.- Parameters:
language- the language to be set as a current language.
-
getCurrentCurrency
CurrencyModel getCurrentCurrency()
Get the current currency- Returns:
- the current currency
-
setCurrentCurrency
void setCurrentCurrency(CurrencyModel currency)
Set current currency.- Parameters:
currency- the currency to be set as a current currency.
-
getCurrentLocale
java.util.Locale getCurrentLocale()
Get the current locale- Returns:
- the current currency
-
getLocaleForLanguage
java.util.Locale getLocaleForLanguage(LanguageModel language)
Get the site specific locale for the specified language- Parameters:
language- the language- Returns:
- the locale
-
-