Class SecurePortalBeforeViewHandler
- java.lang.Object
-
- de.hybris.platform.secureportaladdon.interceptors.SecurePortalBeforeViewHandler
-
- All Implemented Interfaces:
BeforeViewHandler
public class SecurePortalBeforeViewHandler extends java.lang.Object implements BeforeViewHandler
Implementation of BeforeViewHandler.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringCMS_PAGE_ID_MAP_KEYstatic java.lang.StringSLOTS_MAP_KEYstatic java.lang.StringVIEW_NAME_MAP_KEY
-
Constructor Summary
Constructors Constructor Description SecurePortalBeforeViewHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbeforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView)Adds model flag to switch registration link in the Login Viewprotected MetaElementDatacreateMetaElement(java.lang.String name, java.lang.String content)protected java.util.Map<java.lang.String,ContentSlotModel>getContentSlotsForPageAsMap(AbstractPageModel page)protected booleanisSiteSecured()protected voidreplaceModelMetaData(org.springframework.ui.ModelMap model, java.lang.String metaKeywords, java.lang.String metaDescription)protected voidreplaceSideContentSlotComponents(ContentPageModel contentPageModel, org.springframework.ui.ModelMap model)voidsetCmsPageService(CMSPageService cmsPageService)voidsetCmsSiteService(CMSSiteService cmsSiteService)voidsetPageTitleResolver(PageTitleResolver pageTitleResolver)voidsetSpViewMap(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> spViewMap)
-
-
-
Field Detail
-
VIEW_NAME_MAP_KEY
public static final java.lang.String VIEW_NAME_MAP_KEY
- See Also:
- Constant Field Values
-
CMS_PAGE_ID_MAP_KEY
public static final java.lang.String CMS_PAGE_ID_MAP_KEY
- See Also:
- Constant Field Values
-
SLOTS_MAP_KEY
public static final java.lang.String SLOTS_MAP_KEY
- See Also:
- Constant Field Values
-
-
Method Detail
-
setSpViewMap
public void setSpViewMap(java.util.Map<java.lang.String,java.util.Map<java.lang.String,java.lang.String>> spViewMap)
-
setPageTitleResolver
public void setPageTitleResolver(PageTitleResolver pageTitleResolver)
-
setCmsPageService
public void setCmsPageService(CMSPageService cmsPageService)
-
setCmsSiteService
public void setCmsSiteService(CMSSiteService cmsSiteService)
-
isSiteSecured
protected boolean isSiteSecured()
-
beforeView
public void beforeView(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.web.servlet.ModelAndView modelAndView) throws java.lang.ExceptionAdds model flag to switch registration link in the Login View- Specified by:
beforeViewin interfaceBeforeViewHandler- Parameters:
request- current HTTP requestresponse- current HTTP responsemodelAndView- theModelAndViewthat the handler returned- Throws:
java.lang.Exception- in case of errors
-
replaceSideContentSlotComponents
protected void replaceSideContentSlotComponents(ContentPageModel contentPageModel, org.springframework.ui.ModelMap model)
-
getContentSlotsForPageAsMap
protected java.util.Map<java.lang.String,ContentSlotModel> getContentSlotsForPageAsMap(AbstractPageModel page)
-
replaceModelMetaData
protected void replaceModelMetaData(org.springframework.ui.ModelMap model, java.lang.String metaKeywords, java.lang.String metaDescription)
-
createMetaElement
protected MetaElementData createMetaElement(java.lang.String name, java.lang.String content)
-
-