Class ConsentLayerFilter
- java.lang.Object
-
- org.springframework.web.filter.GenericFilterBean
-
- org.springframework.web.filter.OncePerRequestFilter
-
- com.hybris.yprofile.consent.filters.ConsentLayerFilter
-
- 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 ConsentLayerFilter extends org.springframework.web.filter.OncePerRequestFilterGenerates the consent reference for the user and stores it in a cookie and in session
-
-
Constructor Summary
Constructors Constructor Description ConsentLayerFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)ConsentServicegetConsentService()ProfileConfigurationServicegetProfileConfigurationService()SessionServicegetSessionService()UserServicegetUserService()protected booleanisActiveAccount()booleanisEnabled()protected booleanisProfileTrackingConsentGiven(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)protected booleanisProfileTrackingPaused(javax.servlet.http.HttpServletRequest httpServletRequest)voidsetConsentService(ConsentService consentService)voidsetEnabled(boolean enabled)voidsetExcludeUrlPatterns(java.lang.String excludeUrlPatterns)voidsetProfileConfigurationService(ProfileConfigurationService profileConfigurationService)voidsetSessionService(SessionService sessionService)voidsetUserService(UserService userService)protected booleanshouldNotFilter(javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch
-
-
-
-
Method Detail
-
doFilterInternal
protected void doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, java.io.IOException- Specified by:
doFilterInternalin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletExceptionjava.io.IOException
-
isProfileTrackingPaused
protected boolean isProfileTrackingPaused(javax.servlet.http.HttpServletRequest httpServletRequest)
-
isProfileTrackingConsentGiven
protected boolean isProfileTrackingConsentGiven(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
-
isActiveAccount
protected boolean isActiveAccount()
-
shouldNotFilter
protected boolean shouldNotFilter(javax.servlet.http.HttpServletRequest request) throws javax.servlet.ServletException- Overrides:
shouldNotFilterin classorg.springframework.web.filter.OncePerRequestFilter- Throws:
javax.servlet.ServletException
-
getConsentService
public ConsentService getConsentService()
-
setConsentService
public void setConsentService(ConsentService consentService)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getProfileConfigurationService
public ProfileConfigurationService getProfileConfigurationService()
-
setProfileConfigurationService
public void setProfileConfigurationService(ProfileConfigurationService profileConfigurationService)
-
setExcludeUrlPatterns
public void setExcludeUrlPatterns(java.lang.String excludeUrlPatterns)
-
getSessionService
public SessionService getSessionService()
-
getUserService
public UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
setSessionService
public void setSessionService(SessionService sessionService)
-
-