Class CMSWorkflowActionController
java.lang.Object
de.hybris.platform.cmswebservices.workflows.controller.CMSWorkflowActionController
@Controller
@RequestMapping("/v1/catalogs/{catalogId}/versions/{versionId}/workflows/{workflowCode}/actions")
public class CMSWorkflowActionController
extends Object
Controller to manage workflow actions. 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 TypeMethodDescriptiongetActionComments(String workflowCode, String actionCode, PageableWsDTO pageableInfo) getActionsByWorkflowCode(String workflowCode) protected CMSWorkflowActionFacadeprotected DataMapperprotected WebPaginationUtilsvoidsetCmsWorkflowActionFacade(CMSWorkflowActionFacade cmsWorkflowActionFacade) voidsetDataMapper(DataMapper dataMapper) voidsetWebPaginationUtils(WebPaginationUtils webPaginationUtils)
-
Constructor Details
-
CMSWorkflowActionController
public CMSWorkflowActionController()
-
-
Method Details
-
getActionComments
@GetMapping("/{actionCode}/comments") @ResponseStatus(OK) @ResponseBody public CMSCommentListWsDTO getActionComments(@PathVariable String workflowCode, @PathVariable String actionCode, @ModelAttribute PageableWsDTO pageableInfo) -
getActionsByWorkflowCode
@GetMapping @ResponseStatus(OK) @ResponseBody public CMSWorkflowWsDTO getActionsByWorkflowCode(@PathVariable String workflowCode) -
getDataMapper
-
setDataMapper
-
getCmsWorkflowActionFacade
-
setCmsWorkflowActionFacade
-
getWebPaginationUtils
-
setWebPaginationUtils
-