Class CMSWorkflowController


  • @Controller
    @RequestMapping("/v1/catalogs/{catalogId}/versions/{versionId}/workflows")
    public class CMSWorkflowController
    extends java.lang.Object
    Controller to manage workflows for CMSItems. catalogId and versionId are needed as part of the endpoint to set the activeCatalogVersion in the session which is later used by the workflow validators.
    • Constructor Detail

      • CMSWorkflowController

        public CMSWorkflowController()
    • Method Detail

      • findAllWorkflowsForAttachments

        @GetMapping(params={"pageSize","currentPage"})
        @ResponseStatus(OK)
        @ResponseBody
        public CMSWorkflowListWsDTO findAllWorkflowsForAttachments​(@RequestParam(required=false)
                                                                   java.lang.String attachment,
                                                                   @RequestParam(required=false,defaultValue="RUNNING,PAUSED")
                                                                   java.util.List<java.lang.String> statuses,
                                                                   @ModelAttribute
                                                                   PageableWsDTO pageableInfo)
      • getWorkflowByCode

        @GetMapping("/{workflowCode}")
        @ResponseStatus(OK)
        @ResponseBody
        public CMSWorkflowWsDTO getWorkflowByCode​(@PathVariable
                                                  java.lang.String workflowCode)
      • getDataMapper

        protected DataMapper getDataMapper()
      • setDataMapper

        public void setDataMapper​(DataMapper dataMapper)
      • setCmsWorkflowFacade

        public void setCmsWorkflowFacade​(CMSWorkflowFacade cmsWorkflowFacade)
      • setWebPaginationUtils

        public void setWebPaginationUtils​(WebPaginationUtils webPaginationUtils)