Class DefaultCMSWorkflowActionFacade
java.lang.Object
de.hybris.platform.cmsfacades.workflow.impl.DefaultCMSWorkflowActionFacade
- All Implemented Interfaces:
CMSWorkflowActionFacade
Default implementation of the
CMSWorkflowActionFacade.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindAllWorkflowTasks(PageableData pageableData) Returns paginated list of workflow tasks.getActionComments(String workflowCode, String actionCode, PageableData pageableData) Returns paginated list of action comments.getActionsForWorkflowCode(String workflowCode) Returns a list of actions and decisions for a given workflow identified by its code.protected Converter<CommentModel,CMSCommentData> protected CMSWorkflowParticipantServiceprotected CMSWorkflowServiceprotected Converter<WorkflowActionModel,List<CMSWorkflowTaskData>> protected Converter<WorkflowModel,CMSWorkflowData> protected CommentServiceprotected PermissionCRUDServiceprotected SearchResultConverterprotected UserServiceprotected CMSWorkflowActionServicevoidsetCmsCommentDataConverter(Converter<CommentModel, CMSCommentData> cmsCommentDataConverter) voidsetCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService) voidsetCmsWorkflowService(CMSWorkflowService cmsWorkflowService) voidsetCmsWorkflowTaskDataConverter(Converter<WorkflowActionModel, List<CMSWorkflowTaskData>> cmsWorkflowTaskDataConverter) voidsetCmsWorkflowWithActionsDataConverter(Converter<WorkflowModel, CMSWorkflowData> cmsWorkflowWithActionsDataConverter) voidsetCommentService(CommentService commentService) voidsetPermissionCRUDService(PermissionCRUDService permissionCRUDService) voidsetSearchResultConverter(SearchResultConverter searchResultConverter) voidsetUserService(UserService userService) voidsetWorkflowActionService(CMSWorkflowActionService workflowActionService) protected voidthrowTypePermissionException(String permissionName, String typeCode) This method creates and throws a newTypePermissionException.protected voidvalidateTypePermission(String permissionName, String typeCode, Predicate<String> permissionCheck) Validates that the current principal has the permission to execute an operation on the given type.
-
Constructor Details
-
DefaultCMSWorkflowActionFacade
public DefaultCMSWorkflowActionFacade()
-
-
Method Details
-
getActionsForWorkflowCode
Description copied from interface:CMSWorkflowActionFacadeReturns a list of actions and decisions for a given workflow identified by its code.- Specified by:
getActionsForWorkflowCodein interfaceCMSWorkflowActionFacade- Parameters:
workflowCode- - the workflow code- Returns:
- the workflow data with actions and decisions
-
getActionComments
public SearchResult<CMSCommentData> getActionComments(String workflowCode, String actionCode, PageableData pageableData) Description copied from interface:CMSWorkflowActionFacadeReturns paginated list of action comments.- Specified by:
getActionCommentsin interfaceCMSWorkflowActionFacade- Parameters:
workflowCode- - the code corresponding to theWorkflowModelactionCode- - the code corresponding to theWorkflowActionModelpageableData- - the pageable dto determining the page size and index.- Returns:
- the paginated result of action comments data
-
findAllWorkflowTasks
Description copied from interface:CMSWorkflowActionFacadeReturns paginated list of workflow tasks.- Specified by:
findAllWorkflowTasksin interfaceCMSWorkflowActionFacade- Parameters:
pageableData- - the pageable dto determining the page size and index.- Returns:
- the paginated result of workflow tasks data.
-
validateTypePermission
protected void validateTypePermission(String permissionName, String typeCode, Predicate<String> permissionCheck) Validates that the current principal has the permission to execute an operation on the given type.- Parameters:
permissionName- - The name of the permission to check.typeCode- - The code of the type for which to check the principal permission.permissionCheck- - Predicate to execute the permission check.- Throws:
TypePermissionException- if the user does not have the expected permission on the given type.
-
throwTypePermissionException
This method creates and throws a newTypePermissionException.- Parameters:
permissionName- - the name of the permission that triggered the exception.typeCode- - the type for which the principal does not have permission and that triggered the exception.
-
getCommentService
-
setCommentService
-
getCmsCommentDataConverter
-
setCmsCommentDataConverter
public void setCmsCommentDataConverter(Converter<CommentModel, CMSCommentData> cmsCommentDataConverter) -
getCmsWorkflowWithActionsDataConverter
-
setCmsWorkflowWithActionsDataConverter
public void setCmsWorkflowWithActionsDataConverter(Converter<WorkflowModel, CMSWorkflowData> cmsWorkflowWithActionsDataConverter) -
getSearchResultConverter
-
setSearchResultConverter
-
getCmsWorkflowService
-
setCmsWorkflowService
-
getPermissionCRUDService
-
setPermissionCRUDService
-
getCmsWorkflowTaskDataConverter
protected Converter<WorkflowActionModel,List<CMSWorkflowTaskData>> getCmsWorkflowTaskDataConverter() -
setCmsWorkflowTaskDataConverter
public void setCmsWorkflowTaskDataConverter(Converter<WorkflowActionModel, List<CMSWorkflowTaskData>> cmsWorkflowTaskDataConverter) -
getCmsWorkflowParticipantService
-
setCmsWorkflowParticipantService
public void setCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService) -
getUserService
-
setUserService
-
getWorkflowActionService
-
setWorkflowActionService
-