Class AbstractAddOnPageController
- java.lang.Object
-
- de.hybris.platform.addonsupport.controllers.AbstractAddOnController
-
- de.hybris.platform.addonsupport.controllers.page.AbstractAddOnPageController
-
- Direct Known Subclasses:
AbstractPosTransactionPageController
,AbstractSapOrderHistoryPageController
public class AbstractAddOnPageController extends AbstractAddOnController
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
AbstractAddOnController.HttpNotFoundException
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CMS_PAGE_MODEL
static java.lang.String
CMS_PAGE_TITLE
static java.lang.String
PAGE_ROOT
-
Fields inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT
-
-
Constructor Summary
Constructors Constructor Description AbstractAddOnPageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.String
checkRequestUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String resolvedUrlPath, java.lang.String responseStatusAttributeName)
Checks request URL against properly resolved URL and returns null if url is proper or redirection string if not.protected MetaElementData
createMetaElement(java.lang.String name, java.lang.String content)
protected CMSPageService
getCmsPageService()
protected CMSSiteService
getCmsSiteService()
protected ContentPageModel
getContentPageForLabelOrId(java.lang.String labelOrId)
java.util.Collection<CurrencyData>
getCurrencies()
CurrencyData
getCurrentCurrency()
LanguageData
getCurrentLanguage()
protected CustomerFacade
getCustomerFacade()
protected HostConfigService
getHostConfigService()
protected I18NService
getI18nService()
java.util.Collection<LanguageData>
getLanguages()
protected org.springframework.context.MessageSource
getMessageSource()
protected PageTitleResolver
getPageTitleResolver()
protected RequestContextData
getRequestContextData(javax.servlet.http.HttpServletRequest request)
protected SessionService
getSessionService()
protected SiteConfigService
getSiteConfigService()
java.lang.String
getSiteName()
protected StoreSessionFacade
getStoreSessionFacade()
CustomerData
getUser()
protected java.lang.String
getViewForPage(AbstractPageModel page)
protected java.lang.String
getViewForPage(org.springframework.ui.Model model)
protected void
setUpMetaData(org.springframework.ui.Model model, java.lang.String metaKeywords, java.lang.String metaDescription)
protected void
setUpMetaDataForContentPage(org.springframework.ui.Model model, ContentPageModel contentPage)
protected void
storeCmsPageInModel(org.springframework.ui.Model model, AbstractPageModel cmsPage)
protected void
storeContentPageTitleInModel(org.springframework.ui.Model model, java.lang.String title)
protected void
storeContinueUrl(javax.servlet.http.HttpServletRequest request)
-
Methods inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
addRequestToModel, getBean
-
-
-
-
Field Detail
-
PAGE_ROOT
public static final java.lang.String PAGE_ROOT
- See Also:
- Constant Field Values
-
CMS_PAGE_MODEL
public static final java.lang.String CMS_PAGE_MODEL
- See Also:
- Constant Field Values
-
CMS_PAGE_TITLE
public static final java.lang.String CMS_PAGE_TITLE
- See Also:
- Constant Field Values
-
-
Method Detail
-
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 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 URLresponse
- response to write "301 Moved Permanently" status to if redirectedresolvedUrlPath
- - properly resolved URLresponseStatusAttributeName
- - 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
-
getContentPageForLabelOrId
protected ContentPageModel getContentPageForLabelOrId(java.lang.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, 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)
-
-