public class HybrisMerchandisingBeforeViewHandlerAdaptee extends java.lang.Object implements BeforeViewHandlerAdaptee
BeforeViewHandlerAdaptee and intercepts the view request.| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String[] |
ACTIONS |
| Constructor and Description |
|---|
HybrisMerchandisingBeforeViewHandlerAdaptee() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
beforeView(HttpServletRequest request,
HttpServletResponse response,
ModelMap model,
java.lang.String viewName) |
protected <T> T |
getBean(HttpServletRequest request,
java.lang.String beanName,
java.lang.Class<T> beanType)
Helper method to lookup a spring bean in the context of a request.
|
protected Breadcrumbs |
getBreadcrumbs(java.util.List<Breadcrumb> breadcrumbs) |
protected RequestContextData |
getRequestContextData(HttpServletRequest request) |
protected void |
populateJSAddOnVariables(ModelMap model) |
protected java.util.List<JavaScriptVariableData> |
retrieveHybrisConvertJSAddOnVariables(ModelMap model)
Retrieves the HybrisConvert AddOn JS variables from the model.
|
void |
setConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy) |
void |
setContextService(ContextService contextService) |
void |
setSessionService(SessionService sessionService) |
protected void |
storeBreadcrumbs(Session currentSession,
ModelMap model) |
protected void |
storeCategory(RequestContextData requestContextData,
Session currentSession,
ModelMap model) |
protected void |
storeFacets(Session currentSession,
ModelMap model) |
public HybrisMerchandisingBeforeViewHandlerAdaptee()
public java.lang.String beforeView(HttpServletRequest request,
HttpServletResponse response,
ModelMap model,
java.lang.String viewName)
throws java.lang.Exception
beforeView in interface BeforeViewHandlerAdapteejava.lang.Exceptionprotected void storeCategory(RequestContextData requestContextData, Session currentSession, ModelMap model)
protected void storeBreadcrumbs(Session currentSession, ModelMap model)
requestContextData - currentSession - model - protected Breadcrumbs getBreadcrumbs(java.util.List<Breadcrumb> breadcrumbs)
breadcrumbs - - list of Breadcrumbprotected void storeFacets(Session currentSession, ModelMap model)
protected void populateJSAddOnVariables(ModelMap model)
protected java.util.List<JavaScriptVariableData> retrieveHybrisConvertJSAddOnVariables(ModelMap model)
model - protected RequestContextData getRequestContextData(HttpServletRequest request)
protected <T> T getBean(HttpServletRequest request,
java.lang.String beanName,
java.lang.Class<T> beanType)
T - the expected type of the beanrequest - the current requestbeanName - the name of the bean to lookupbeanType - the expected type of the beanpublic void setSessionService(SessionService sessionService)
public void setContextService(ContextService contextService)
public void setConsumedDestinationLocatorStrategy(ConsumedDestinationLocatorStrategy consumedDestinationLocatorStrategy)
Copyright © 2018 SAP SE. All Rights Reserved.