private static final class ShopFactory.ShopProxy extends Shop
Modifier and Type | Field and Description |
---|---|
private java.lang.RuntimeException |
exception |
Constructor and Description |
---|
ShopFactory.ShopProxy(java.lang.RuntimeException ex) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Currency> |
getCurrencies() |
java.util.Currency |
getDefaultCurrency() |
java.util.Locale |
getDefaultLocale() |
java.util.Locale |
getFallbackLocale(java.util.Locale locale)
The locale is resolved in the following order:
the default locale if the locale parameter is
null
the same locale if it's found in the shop's locales
the locale with the same language and the highest position in the list if there is one
the default locale otherwise
|
java.util.List<java.util.Locale> |
getLocales() |
java.lang.String |
getStorename() |
boolean |
isCurrencyAvailable(java.util.Currency currency) |
boolean |
isLanguageAvailable(java.util.Locale locale) |
getAlias, getDomainName, getGuid, getObjectId, getProductsPerPage, getPublicId, getSystemDomainName, isDomainSslSecured, isSystemDomainSslSecured, setAlias, setCurrencies, setDefaultCurrency, setDefaultLocale, setDomainName, setDomainSslSecured, setGuid, setLocales, setObjectId, setProductsPerPage, setPublicId, setStorename, setSystemDomainName, setSystemDomainSslSecured
public ShopFactory.ShopProxy(java.lang.RuntimeException ex)
public java.lang.String getStorename()
getStorename
in class Shop
public java.util.Currency getDefaultCurrency()
getDefaultCurrency
in class Shop
public java.util.List<java.util.Currency> getCurrencies()
getCurrencies
in class Shop
public java.util.Locale getDefaultLocale()
getDefaultLocale
in class Shop
public java.util.List<java.util.Locale> getLocales()
getLocales
in class Shop
public boolean isLanguageAvailable(java.util.Locale locale)
isLanguageAvailable
in class Shop
public boolean isCurrencyAvailable(java.util.Currency currency)
isCurrencyAvailable
in class Shop
public java.util.Locale getFallbackLocale(java.util.Locale locale)
Shop
null
getFallbackLocale
in class Shop
locale
- required locale