Class UserSecurityInterceptor

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class UserSecurityInterceptor
    extends java.lang.Object
    implements org.springframework.web.servlet.AsyncHandlerInterceptor
    Interceptor Adaptor to add the user to the Model each server call. Also ensures Role.ROLE_SEQUENCER users cannot do anything in the UI.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String CURRENT_USER_DETAILS  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void postHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler, org.springframework.web.servlet.ModelAndView modelAndView)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.web.servlet.AsyncHandlerInterceptor

        afterConcurrentHandlingStarted
      • Methods inherited from interface org.springframework.web.servlet.HandlerInterceptor

        afterCompletion, preHandle
    • Field Detail

      • CURRENT_USER_DETAILS

        public static final java.lang.String CURRENT_USER_DETAILS
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserSecurityInterceptor

        public UserSecurityInterceptor()
    • Method Detail

      • postHandle

        public void postHandle​(javax.servlet.http.HttpServletRequest request,
                               javax.servlet.http.HttpServletResponse response,
                               java.lang.Object handler,
                               org.springframework.web.servlet.ModelAndView modelAndView)
                        throws java.lang.Exception
        Specified by:
        postHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Throws:
        java.lang.Exception