Class AbstractAddOnPageController

    • Constructor Detail

      • AbstractAddOnPageController

        public AbstractAddOnPageController()
    • Method Detail

      • getMessageSource

        protected org.springframework.context.MessageSource getMessageSource()
      • getI18nService

        protected I18NService getI18nService()
      • getLanguages

        @ModelAttribute("languages")
        public java.util.Collection<LanguageData> getLanguages()
      • getCurrencies

        @ModelAttribute("currencies")
        public java.util.Collection<CurrencyData> getCurrencies()
      • getCurrentLanguage

        @ModelAttribute("currentLanguage")
        public LanguageData getCurrentLanguage()
      • getCurrentCurrency

        @ModelAttribute("currentCurrency")
        public CurrencyData getCurrentCurrency()
      • getSiteName

        @ModelAttribute("siteName")
        public java.lang.String getSiteName()
      • getUser

        @ModelAttribute("user")
        public CustomerData getUser()
      • storeCmsPageInModel

        protected void storeCmsPageInModel​(org.springframework.ui.Model model,
                                           AbstractPageModel cmsPage)
      • storeContentPageTitleInModel

        protected void storeContentPageTitleInModel​(org.springframework.ui.Model model,
                                                    java.lang.String title)
      • getViewForPage

        protected java.lang.String getViewForPage​(org.springframework.ui.Model model)
      • getViewForPage

        protected java.lang.String getViewForPage​(AbstractPageModel page)
      • checkRequestUrl

        protected java.lang.String checkRequestUrl​(javax.servlet.http.HttpServletRequest request,
                                                   javax.servlet.http.HttpServletResponse response,
                                                   java.lang.String resolvedUrlPath,
                                                   java.lang.String responseStatusAttributeName)
                                            throws java.io.UnsupportedEncodingException
        Checks request URL against properly resolved URL and returns null if url is proper or redirection string if not.
        Parameters:
        request - - request that contains current URL
        response - response to write "301 Moved Permanently" status to if redirected
        resolvedUrlPath - - properly resolved URL
        responseStatusAttributeName - - response attribute name to which write the "301 Moved Permanently" status
        Returns:
        null if url is properly resolved or redirection string if not
        Throws:
        java.io.UnsupportedEncodingException
      • storeContinueUrl

        protected void storeContinueUrl​(javax.servlet.http.HttpServletRequest request)
      • setUpMetaData

        protected void setUpMetaData​(org.springframework.ui.Model model,
                                     java.lang.String metaKeywords,
                                     java.lang.String metaDescription)
      • createMetaElement

        protected MetaElementData createMetaElement​(java.lang.String name,
                                                    java.lang.String content)
      • setUpMetaDataForContentPage

        protected void setUpMetaDataForContentPage​(org.springframework.ui.Model model,
                                                   ContentPageModel contentPage)
      • getRequestContextData

        protected RequestContextData getRequestContextData​(javax.servlet.http.HttpServletRequest request)