Class TmaEligibilityContextFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.b2ctelcoocc.filters.TmaEligibilityContextFilter
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 TmaEligibilityContextFilter extends org.springframework.web.filter.OncePerRequestFilter
Filter responsible for updating the TmaEligibilityContext for the current user.
Since:
1907
  • Field Summary

    Fields inherited from class org.springframework.web.filter.OncePerRequestFilter

    ALREADY_FILTERED_SUFFIX

    Fields inherited from class org.springframework.web.filter.GenericFilterBean

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
    TmaEligibilityContextFilter(TmaEligibilityContextService eligibilityContextService, String regexp, String regexpProductApi, de.hybris.platform.servicelayer.config.ConfigurationService configurationService, TmaCustomerFacade tmaCustomerFacade)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain)
     
    de.hybris.platform.servicelayer.config.ConfigurationService
     
     
    protected Matcher
    getMatcher(javax.servlet.http.HttpServletRequest request, String regexp)
     
    protected String
     
    protected String
     
    protected boolean
     
    protected boolean
    matchesUrl(javax.servlet.http.HttpServletRequest request, String regexp)
     

    Methods inherited from class org.springframework.web.filter.OncePerRequestFilter

    doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatch

    Methods inherited from class org.springframework.web.filter.GenericFilterBean

    addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContext

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TmaEligibilityContextFilter

      public TmaEligibilityContextFilter(TmaEligibilityContextService eligibilityContextService, String regexp, String regexpProductApi, de.hybris.platform.servicelayer.config.ConfigurationService configurationService, TmaCustomerFacade tmaCustomerFacade)
      Parameters:
      eligibilityContextService -
      regexp -
      regexpProductApi -
  • Method Details

    • doFilterInternal

      protected void doFilterInternal(javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse, javax.servlet.FilterChain filterChain) throws javax.servlet.ServletException, IOException
      Specified by:
      doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • matchesUrl

      protected boolean matchesUrl(javax.servlet.http.HttpServletRequest request, String regexp)
    • getMatcher

      protected Matcher getMatcher(javax.servlet.http.HttpServletRequest request, String regexp)
    • hasAdminRole

      protected boolean hasAdminRole()
    • getEligibilityContextService

      protected TmaEligibilityContextService getEligibilityContextService()
    • getRegexp

      protected String getRegexp()
    • getRegexpProductApi

      protected String getRegexpProductApi()
    • getConfigurationService

      public de.hybris.platform.servicelayer.config.ConfigurationService getConfigurationService()