Class UserSecurityInterceptor
- java.lang.Object
-
- ca.corefacility.bioinformatics.irida.ria.config.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 theModel
each server call. Also ensuresRole.ROLE_SEQUENCER
users cannot do anything in the UI.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CURRENT_USER_DETAILS
-
Constructor Summary
Constructors Constructor Description UserSecurityInterceptor()
-
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
-
-
-
-
Field Detail
-
CURRENT_USER_DETAILS
public static final java.lang.String CURRENT_USER_DETAILS
- See Also:
- Constant Field Values
-
-
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 interfaceorg.springframework.web.servlet.HandlerInterceptor
- Throws:
java.lang.Exception
-
-