Class TmaBaseSiteSessionFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.b2ctelcotmfwebservices.filters.TmaBaseSiteSessionFilter
- All Implemented Interfaces:
javax.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.web.context.ServletContextAware
public class TmaBaseSiteSessionFilter
extends org.springframework.web.filter.OncePerRequestFilter
Filter that creates a new session for the request and sets current baseSite. if request
url contains baseSite id, that value is used to set session baseSite
otherwise the default value is picked from project.properties.
- Since:
- 1810
-
Field Summary
Fields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
logger -
Constructor Summary
ConstructorsConstructorDescriptionTmaBaseSiteSessionFilter(de.hybris.platform.servicelayer.config.ConfigurationService configurationService, de.hybris.platform.commercefacades.user.UserFacade userFacade, TmaCustomerFacade tmaCustomerFacade, de.hybris.platform.servicelayer.session.SessionService sessionService) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) protected StringgetApplicableUid(String userId) protected de.hybris.platform.site.BaseSiteServicede.hybris.platform.servicelayer.config.ConfigurationServiceprotected de.hybris.platform.servicelayer.session.SessionServicede.hybris.platform.commercefacades.user.UserFacadeprotected booleanhasRole()voidsetBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext
-
Constructor Details
-
TmaBaseSiteSessionFilter
public TmaBaseSiteSessionFilter(de.hybris.platform.servicelayer.config.ConfigurationService configurationService, de.hybris.platform.commercefacades.user.UserFacade userFacade, TmaCustomerFacade tmaCustomerFacade, de.hybris.platform.servicelayer.session.SessionService sessionService)
-
-
Method Details
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException - Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionIOException
-
getApplicableUid
-
hasRole
protected boolean hasRole() -
getBaseSiteService
protected de.hybris.platform.site.BaseSiteService getBaseSiteService() -
setBaseSiteService
public void setBaseSiteService(de.hybris.platform.site.BaseSiteService baseSiteService) -
getConfigurationService
public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService() -
getUserFacade
public de.hybris.platform.commercefacades.user.UserFacade getUserFacade() -
getTmaCustomerFacade
-
getSessionService
protected de.hybris.platform.servicelayer.session.SessionService getSessionService()
-