Class AbstractAddOnPageController
java.lang.Object
de.hybris.platform.addonsupport.controllers.AbstractAddOnController
de.hybris.platform.addonsupport.controllers.page.AbstractAddOnPageController
- Direct Known Subclasses:
YFormsDemoPageController
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
AbstractAddOnController.HttpNotFoundException -
Field Summary
FieldsFields inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
FORWARD_PREFIX, REDIRECT_PREFIX, ROOT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringcheckRequestUrl(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String resolvedUrlPath, String responseStatusAttributeName) Checks request URL against properly resolved URL and returns null if url is proper or redirection string if not.protected MetaElementDatacreateMetaElement(String name, String content) protected CMSPageServiceprotected CMSSiteServiceprotected ContentPageModelgetContentPageForLabelOrId(String labelOrId) protected CustomerFacadeprotected HostConfigServiceprotected I18NServiceprotected org.springframework.context.MessageSourceprotected PageTitleResolverprotected RequestContextDatagetRequestContextData(javax.servlet.http.HttpServletRequest request) protected SessionServiceprotected SiteConfigServiceprotected StoreSessionFacadegetUser()protected Stringprotected StringgetViewForPage(org.springframework.ui.Model model) protected voidsetUpMetaData(org.springframework.ui.Model model, String metaKeywords, String metaDescription) protected voidsetUpMetaDataForContentPage(org.springframework.ui.Model model, ContentPageModel contentPage) protected voidstoreCmsPageInModel(org.springframework.ui.Model model, AbstractPageModel cmsPage) protected voidstoreContentPageTitleInModel(org.springframework.ui.Model model, String title) protected voidstoreContinueUrl(javax.servlet.http.HttpServletRequest request) Methods inherited from class de.hybris.platform.addonsupport.controllers.AbstractAddOnController
addRequestToModel, getBean
-
Field Details
-
PAGE_ROOT
- See Also:
-
CMS_PAGE_MODEL
- See Also:
-
CMS_PAGE_TITLE
- See Also:
-
-
Constructor Details
-
AbstractAddOnPageController
public AbstractAddOnPageController()
-
-
Method Details
-
getSiteConfigService
-
getCmsSiteService
-
getCmsPageService
-
getStoreSessionFacade
-
getCustomerFacade
-
getSessionService
-
getHostConfigService
-
getMessageSource
protected org.springframework.context.MessageSource getMessageSource() -
getI18nService
-
getLanguages
-
getCurrencies
-
getCurrentLanguage
-
getCurrentCurrency
-
getSiteName
-
getUser
-
storeCmsPageInModel
-
storeContentPageTitleInModel
-
getViewForPage
-
getViewForPage
-
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 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:
UnsupportedEncodingException
-
getContentPageForLabelOrId
protected ContentPageModel getContentPageForLabelOrId(String labelOrId) throws CMSItemNotFoundException - Throws:
CMSItemNotFoundException
-
getPageTitleResolver
-
storeContinueUrl
protected void storeContinueUrl(javax.servlet.http.HttpServletRequest request) -
setUpMetaData
-
createMetaElement
-
setUpMetaDataForContentPage
protected void setUpMetaDataForContentPage(org.springframework.ui.Model model, ContentPageModel contentPage) -
getRequestContextData
-