Class DefaultCMSWorkflowActionFacade
- java.lang.Object
-
- de.hybris.platform.cmsfacades.workflow.impl.DefaultCMSWorkflowActionFacade
-
- All Implemented Interfaces:
CMSWorkflowActionFacade
public class DefaultCMSWorkflowActionFacade extends java.lang.Object implements CMSWorkflowActionFacade
Default implementation of theCMSWorkflowActionFacade.
-
-
Constructor Summary
Constructors Constructor Description DefaultCMSWorkflowActionFacade()
-
Method Summary
-
-
-
Method Detail
-
getActionsForWorkflowCode
public CMSWorkflowData getActionsForWorkflowCode(java.lang.String workflowCode)
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(java.lang.String workflowCode, java.lang.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
public SearchResult<CMSWorkflowTaskData> findAllWorkflowTasks(PageableData pageableData)
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(java.lang.String permissionName, java.lang.String typeCode, java.util.function.Predicate<java.lang.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
protected void throwTypePermissionException(java.lang.String permissionName, java.lang.String typeCode)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
protected CommentService getCommentService()
-
setCommentService
public void setCommentService(CommentService commentService)
-
getCmsCommentDataConverter
protected Converter<CommentModel,CMSCommentData> getCmsCommentDataConverter()
-
setCmsCommentDataConverter
public void setCmsCommentDataConverter(Converter<CommentModel,CMSCommentData> cmsCommentDataConverter)
-
getCmsWorkflowWithActionsDataConverter
protected Converter<WorkflowModel,CMSWorkflowData> getCmsWorkflowWithActionsDataConverter()
-
setCmsWorkflowWithActionsDataConverter
public void setCmsWorkflowWithActionsDataConverter(Converter<WorkflowModel,CMSWorkflowData> cmsWorkflowWithActionsDataConverter)
-
getSearchResultConverter
protected SearchResultConverter getSearchResultConverter()
-
setSearchResultConverter
public void setSearchResultConverter(SearchResultConverter searchResultConverter)
-
getCmsWorkflowService
protected CMSWorkflowService getCmsWorkflowService()
-
setCmsWorkflowService
public void setCmsWorkflowService(CMSWorkflowService cmsWorkflowService)
-
getPermissionCRUDService
protected PermissionCRUDService getPermissionCRUDService()
-
setPermissionCRUDService
public void setPermissionCRUDService(PermissionCRUDService permissionCRUDService)
-
getCmsWorkflowTaskDataConverter
protected Converter<WorkflowActionModel,java.util.List<CMSWorkflowTaskData>> getCmsWorkflowTaskDataConverter()
-
setCmsWorkflowTaskDataConverter
public void setCmsWorkflowTaskDataConverter(Converter<WorkflowActionModel,java.util.List<CMSWorkflowTaskData>> cmsWorkflowTaskDataConverter)
-
getCmsWorkflowParticipantService
protected CMSWorkflowParticipantService getCmsWorkflowParticipantService()
-
setCmsWorkflowParticipantService
public void setCmsWorkflowParticipantService(CMSWorkflowParticipantService cmsWorkflowParticipantService)
-
getUserService
protected UserService getUserService()
-
setUserService
public void setUserService(UserService userService)
-
getWorkflowActionService
protected CMSWorkflowActionService getWorkflowActionService()
-
setWorkflowActionService
public void setWorkflowActionService(CMSWorkflowActionService workflowActionService)
-
-