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 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

      protected CMSAdminPageService getCmsAdminPageService()
    • setCmsAdminPageService

      public void setCmsAdminPageService(CMSAdminPageService cmsAdminPageService)
    • getCmsWorkflowAttachmentService

      protected CMSWorkflowAttachmentService getCmsWorkflowAttachmentService()
    • setCmsWorkflowAttachmentService

      public void setCmsWorkflowAttachmentService(CMSWorkflowAttachmentService cmsWorkflowAttachmentService)