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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidafterCompletion(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, Exception exception) protected KualiModuleServiceprotected ModuleServicegetModuleService(javax.servlet.http.HttpServletRequest request) Retrieves the module service that is associated with the data object class given through the requestprotected booleanisModuleLocked(javax.servlet.http.HttpServletRequest request) Determines the module associated with the given request and then checks whether the module is lockedvoidpostHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler, org.springframework.web.servlet.ModelAndView modelAndview) booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) voidsetKualiModuleService(KualiModuleService kualiModuleService) voidsetModuleLockedMapping(String moduleLockedMapping)
-
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:
afterCompletionin interfaceorg.springframework.web.servlet.HandlerInterceptor- Throws:
Exception- See Also:
-
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:
postHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor- Throws:
Exception- See Also:
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception - Specified by:
preHandlein interfaceorg.springframework.web.servlet.HandlerInterceptor- Throws:
Exception- See Also:
-
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
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
-
setModuleLockedMapping
-
setKualiModuleService
-
getKualiModuleService
-