Class AbstractAddOnPageController

java.lang.Object
de.hybris.platform.addonsupport.controllers.AbstractAddOnController
de.hybris.platform.addonsupport.controllers.page.AbstractAddOnPageController
Direct Known Subclasses:
YFormsDemoPageController

public class AbstractAddOnPageController extends AbstractAddOnController
  • Field Details

  • Constructor Details

    • AbstractAddOnPageController

      public AbstractAddOnPageController()
  • Method Details

    • getSiteConfigService

      protected SiteConfigService getSiteConfigService()
    • getCmsSiteService

      protected CMSSiteService getCmsSiteService()
    • getCmsPageService

      protected CMSPageService getCmsPageService()
    • getStoreSessionFacade

      protected StoreSessionFacade getStoreSessionFacade()
    • getCustomerFacade

      protected CustomerFacade getCustomerFacade()
    • getSessionService

      protected SessionService getSessionService()
    • getHostConfigService

      protected HostConfigService getHostConfigService()
    • getMessageSource

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

      protected I18NService getI18nService()
    • getLanguages

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

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

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

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

      @ModelAttribute("siteName") public 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, String title)
    • getViewForPage

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

      protected String getViewForPage(AbstractPageModel page)
    • checkRequestUrl

      protected String checkRequestUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String resolvedUrlPath, String responseStatusAttributeName) throws 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:
      UnsupportedEncodingException
    • getContentPageForLabelOrId

      protected ContentPageModel getContentPageForLabelOrId(String labelOrId) throws CMSItemNotFoundException
      Throws:
      CMSItemNotFoundException
    • getPageTitleResolver

      protected PageTitleResolver getPageTitleResolver()
    • storeContinueUrl

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

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

      protected MetaElementData createMetaElement(String name, String content)
    • setUpMetaDataForContentPage

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

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