Class PageRestrictionWorkflowInterceptor
java.lang.Object
org.springframework.web.servlet.handler.HandlerInterceptorAdapter
de.hybris.platform.cmswebservices.interceptor.PageRestrictionWorkflowInterceptor
- All Implemented Interfaces:
org.springframework.web.servlet.AsyncHandlerInterceptor,org.springframework.web.servlet.HandlerInterceptor
public class PageRestrictionWorkflowInterceptor
extends org.springframework.web.servlet.handler.HandlerInterceptorAdapter
Default interceptor to run before the PagesRestrictions controller's execution to verify if the affected page is
already attached to a workflow. If the page is already a workflow attachment, users should not be able to modify it
anymore in order to preserve a consistent state. In such case, we return an error in the HTTP response using the
status code 409 - Conflict.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CMSAdminPageServiceprotected CMSWorkflowAttachmentServicebooleanpreHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) voidsetCmsAdminPageService(CMSAdminPageService cmsAdminPageService) voidsetCmsWorkflowAttachmentService(CMSWorkflowAttachmentService cmsWorkflowAttachmentService) 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
-
PageRestrictionWorkflowInterceptor
public PageRestrictionWorkflowInterceptor()
-
-
Method Details
-
preHandle
public boolean preHandle(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object handler) throws IOException - Throws:
IOException
-
getCmsAdminPageService
-
setCmsAdminPageService
-
getCmsWorkflowAttachmentService
-
setCmsWorkflowAttachmentService
public void setCmsWorkflowAttachmentService(CMSWorkflowAttachmentService cmsWorkflowAttachmentService)
-