Class CmsCacheInitializerInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
de.hybris.platform.cmswebservices.interceptor.CmsCacheInitializerInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.AsyncHandlerInterceptor,org.springframework.web.servlet.HandlerInterceptor
public class CmsCacheInitializerInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Default interceptor to run before the controller's execution to initialize the permission cache.
Reason: part of the code can be run in executeInLocalView which means that everything
that is put in the cache during executeInLocalView execution will never be available outside.
So we can not initialize the cache inside executeInLocalView. That's why it's initialized here.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) voidsetCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider) voidsetPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.servlet.AsyncHandlerInterceptor
afterConcurrentHandlingStartedMethods inherited from interface org.springframework.web.servlet.HandlerInterceptor
afterCompletion, postHandle
-
Constructor Details
-
CmsCacheInitializerInterceptor
public CmsCacheInitializerInterceptor()
-
-
Method Details
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws Exception - Throws:
Exception
-
getPermissionCachedCRUDService
-
setPermissionCachedCRUDService
-
getCmsVersionSessionContextProvider
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider)
-