Class CMSWorkflowController
java.lang.Object
de.hybris.platform.cmswebservices.workflows.controller.CMSWorkflowController
@Controller
@RequestMapping("/v1/catalogs/{catalogId}/versions/{versionId}/workflows")
public class CMSWorkflowController
extends 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWorkflow(CMSWorkflowWsDTO workflowInfo) editWorkflow(String workflowCode, CMSWorkflowWsDTO dto) findAllWorkflowsForAttachments(String attachment, List<String> statuses, PageableWsDTO pageableInfo) protected CMSWorkflowFacadeprotected DataMapperprotected WebPaginationUtilsgetWorkflowByCode(String workflowCode) voidsetCmsWorkflowFacade(CMSWorkflowFacade cmsWorkflowFacade) voidsetDataMapper(DataMapper dataMapper) voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
Constructor Details
-
CMSWorkflowController
public CMSWorkflowController()
-
-
Method Details
-
createWorkflow
@PostMapping @ResponseStatus(CREATED) @ResponseBody public CMSWorkflowWsDTO createWorkflow(@RequestBody CMSWorkflowWsDTO workflowInfo) -
editWorkflow
@PutMapping("/{workflowCode}") @ResponseStatus(OK) @ResponseBody public CMSWorkflowWsDTO editWorkflow(@PathVariable String workflowCode, @RequestBody CMSWorkflowWsDTO dto) throws UnknownIdentifierException - Throws:
UnknownIdentifierException
-
findAllWorkflowsForAttachments
@GetMapping(params={"pageSize","currentPage"}) @ResponseStatus(OK) @ResponseBody public CMSWorkflowListWsDTO findAllWorkflowsForAttachments(@RequestParam(required=false) String attachment, @RequestParam(required=false,defaultValue="RUNNING,PAUSED") List<String> statuses, @ModelAttribute PageableWsDTO pageableInfo) -
getWorkflowByCode
@GetMapping("/{workflowCode}") @ResponseStatus(OK) @ResponseBody public CMSWorkflowWsDTO getWorkflowByCode(@PathVariable String workflowCode) -
getDataMapper
-
setDataMapper
-
getCmsWorkflowFacade
-
setCmsWorkflowFacade
-
getWebPaginationUtils
-
setWebPaginationUtils
-