Class DefaultLanguageFacade
java.lang.Object
de.hybris.platform.cmsfacades.languages.impl.DefaultLanguageFacade
- All Implemented Interfaces:
LanguageFacade
Default implementation of
LanguageFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BaseSiteServiceprotected StringFind the default language for the base site in the active session.Get all languages for the current active site.protected StoreSessionFacadevoidsetBaseSiteService(BaseSiteService baseSiteService) voidsetStoreSessionFacade(StoreSessionFacade storeSessionFacade)
-
Constructor Details
-
DefaultLanguageFacade
public DefaultLanguageFacade()
-
-
Method Details
-
getLanguages
Description copied from interface:LanguageFacadeGet all languages for the current active site. The languages are ordered starting with the default language.
For example: Given a site supports [ "EN", "DE", "JP", "IT" ] and German is the default language, the resulted list would be ordered: [ "DE", "EN", "JP", "IT" ]- Specified by:
getLanguagesin interfaceLanguageFacade- Returns:
- list of languages.
-
getDefaultLanguageIsocode
Find the default language for the base site in the active session. If none was defined on the site level, this will fallback to the default language defined on the base store level.- Returns:
- the isocode of the default language defined for a given site; can be
NULLwhen no default language is defined on both the base site and the base store level.
-
getStoreSessionFacade
-
setStoreSessionFacade
-
getBaseSiteService
-
setBaseSiteService
-