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.HandlerInterceptorAdapterDefault 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 Constructor Description CmsCacheInitializerInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CMSVersionSessionContextProvidergetCmsVersionSessionContextProvider()PermissionCachedCRUDServicegetPermissionCachedCRUDService()booleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.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, wait
-
-
-
-
Method Detail
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler) throws java.lang.Exception- Throws:
java.lang.Exception
-
getPermissionCachedCRUDService
public PermissionCachedCRUDService getPermissionCachedCRUDService()
-
setPermissionCachedCRUDService
public void setPermissionCachedCRUDService(PermissionCachedCRUDService permissionCachedCRUDService)
-
getCmsVersionSessionContextProvider
public CMSVersionSessionContextProvider getCmsVersionSessionContextProvider()
-
setCmsVersionSessionContextProvider
public void setCmsVersionSessionContextProvider(CMSVersionSessionContextProvider cmsVersionSessionContextProvider)
-
-