Class LocaleImpl
java.lang.Object
org.broadleafcommerce.common.locale.domain.LocaleImpl
- All Implemented Interfaces:
Serializable,AdminMainEntity,Locale
Created by jfischer
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BroadleafCurrencyprotected Booleanprotected Stringprotected Localeprotected Stringprotected BooleanFields inherited from interface org.broadleafcommerce.common.admin.domain.AdminMainEntity
MAIN_ENTITY_NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanIf true then the country portion of the locale will be used when building the search index.inthashCode()voidsetDefaultCurrency(BroadleafCurrency defaultCurrency) voidsetDefaultFlag(Boolean defaultFlag) voidsetFriendlyName(String friendlyName) voidsetLocaleCode(String localeCode) voidsetUseCountryInSearchIndex(Boolean useInSearchIndex) Sets whether or not to use the country portion of the locale in the search index.
-
Field Details
-
localeCode
-
friendlyName
-
defaultFlag
-
defaultCurrency
-
useInSearchIndex
-
javaLocale
-
-
Constructor Details
-
LocaleImpl
public LocaleImpl()
-
-
Method Details
-
getLocaleCode
- Specified by:
getLocaleCodein interfaceLocale
-
setLocaleCode
- Specified by:
setLocaleCodein interfaceLocale
-
getFriendlyName
- Specified by:
getFriendlyNamein interfaceLocale
-
setFriendlyName
- Specified by:
setFriendlyNamein interfaceLocale
-
getDefaultFlag
- Specified by:
getDefaultFlagin interfaceLocale
-
setDefaultFlag
- Specified by:
setDefaultFlagin interfaceLocale
-
getDefaultCurrency
- Specified by:
getDefaultCurrencyin interfaceLocale
-
setDefaultCurrency
- Specified by:
setDefaultCurrencyin interfaceLocale
-
getUseCountryInSearchIndex
Description copied from interface:LocaleIf true then the country portion of the locale will be used when building the search index. If null or false then only the language will be used.For example, if false, a locale of en_US will only index the results based on the root of "en".
- Specified by:
getUseCountryInSearchIndexin interfaceLocale- Returns:
-
setUseCountryInSearchIndex
Description copied from interface:LocaleSets whether or not to use the country portion of the locale in the search index.- Specified by:
setUseCountryInSearchIndexin interfaceLocale
-
getJavaLocale
- Specified by:
getJavaLocalein interfaceLocale
-
equals
-
hashCode
public int hashCode() -
getMainEntityName
- Specified by:
getMainEntityNamein interfaceAdminMainEntity- Returns:
- the display name of this entity for the admin screen
-