Class UserMatchingFilter

java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
de.hybris.platform.commercewebservices.core.v2.filter.AbstractUrlMatchingFilter
de.hybris.platform.commercewebservices.core.v2.filter.UserMatchingFilter
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 UserMatchingFilter extends AbstractUrlMatchingFilter
Filter that puts user from the requested url into the session.
  • Field Details

  • Constructor Details

    • UserMatchingFilter

      public UserMatchingFilter()
  • 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:
      doFilterInternal in class org.springframework.web.filter.OncePerRequestFilter
      Throws:
      javax.servlet.ServletException
      IOException
    • hasRole

      protected boolean hasRole(String role, org.springframework.security.core.Authentication auth)
    • getUserIdFromRequest

      protected String getUserIdFromRequest(javax.servlet.http.HttpServletRequest request, org.springframework.security.core.Authentication auth)
    • setCurrentUser

      protected void setCurrentUser(String id)
    • setCurrentUser

      protected void setCurrentUser(UserModel user)
    • setCurrentUserForCustomerGroupRole

      protected void setCurrentUserForCustomerGroupRole(String principal, String userID)
    • getUserForValidProperty

      protected Optional<UserModel> getUserForValidProperty(String principal, String propertyValue)
    • getAuth

      protected org.springframework.security.core.Authentication getAuth()
    • getRegexp

      protected String getRegexp()
    • setRegexp

      public void setRegexp(String regexp)
    • getUserService

      protected UserService getUserService()
    • setUserService

      public void setUserService(UserService userService)
    • getSessionService

      protected SessionService getSessionService()
    • setSessionService

      public void setSessionService(SessionService sessionService)
    • getUserMatchingService

      protected UserMatchingService getUserMatchingService()
    • setUserMatchingService

      public void setUserMatchingService(UserMatchingService userMatchingService)