Class ModuleLockingHandlerInterceptor

java.lang.Object
org.kuali.rice.krad.web.controller.ModuleLockingHandlerInterceptor
All Implemented Interfaces:
org.springframework.web.servlet.HandlerInterceptor

public class ModuleLockingHandlerInterceptor extends Object implements org.springframework.web.servlet.HandlerInterceptor
Interceptor which checks whether the module the request was made for is locked and if so forwards the request to the module locked controller
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Constructor Details

    • ModuleLockingHandlerInterceptor

      public ModuleLockingHandlerInterceptor()
  • Method Details

    • afterCompletion

      public void afterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception exception) throws Exception
      Specified by:
      afterCompletion in interface org.springframework.web.servlet.HandlerInterceptor
      Throws:
      Exception
      See Also:
      • HandlerInterceptor.afterCompletion(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object, java.lang.Exception)
    • postHandle

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

      public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception
      Specified by:
      preHandle in interface org.springframework.web.servlet.HandlerInterceptor
      Throws:
      Exception
      See Also:
      • HandlerInterceptor.preHandle(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse, java.lang.Object)
    • isModuleLocked

      protected boolean isModuleLocked(javax.servlet.http.HttpServletRequest request)
      Determines the module associated with the given request and then checks whether the module is locked
      Parameters:
      request - request object to pull parameters from
      Returns:
      boolean true if the associated module is locked, false if not or no associated module was found
    • getModuleService

      protected ModuleService getModuleService(javax.servlet.http.HttpServletRequest request)
      Retrieves the module service that is associated with the data object class given through the request
      Parameters:
      request - request object to check parameters for
      Returns:
      ModuleService module service for data object (if found) or null
    • getModuleLockedMapping

      public String getModuleLockedMapping()
    • setModuleLockedMapping

      public void setModuleLockedMapping(String moduleLockedMapping)
    • setKualiModuleService

      public void setKualiModuleService(KualiModuleService kualiModuleService)
    • getKualiModuleService

      protected KualiModuleService getKualiModuleService()