Class DefaultLanguageFacade

    • Constructor Detail

      • DefaultLanguageFacade

        public DefaultLanguageFacade()
    • Method Detail

      • getLanguages

        public java.util.List<LanguageData> getLanguages()
        Description copied from interface: LanguageFacade
        Get 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:
        getLanguages in interface LanguageFacade
        Returns:
        list of languages.
      • getDefaultLanguageIsocode

        protected java.lang.String 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 NULL when no default language is defined on both the base site and the base store level.
      • setStoreSessionFacade

        public void setStoreSessionFacade​(StoreSessionFacade storeSessionFacade)
      • setBaseSiteService

        public void setBaseSiteService​(BaseSiteService baseSiteService)