Class DefaultCMSWorkflowActionFacade

    • Constructor Detail

      • DefaultCMSWorkflowActionFacade

        public DefaultCMSWorkflowActionFacade()
    • Method Detail

      • getActionsForWorkflowCode

        public CMSWorkflowData getActionsForWorkflowCode​(java.lang.String workflowCode)
        Description copied from interface: CMSWorkflowActionFacade
        Returns a list of actions and decisions for a given workflow identified by its code.
        Specified by:
        getActionsForWorkflowCode in interface CMSWorkflowActionFacade
        Parameters:
        workflowCode - - the workflow code
        Returns:
        the workflow data with actions and decisions
      • 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 new TypePermissionException.
        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.
      • setCommentService

        public void setCommentService​(CommentService commentService)
      • setSearchResultConverter

        public void setSearchResultConverter​(SearchResultConverter searchResultConverter)
      • setCmsWorkflowService

        public void setCmsWorkflowService​(CMSWorkflowService cmsWorkflowService)
      • setPermissionCRUDService

        public void setPermissionCRUDService​(PermissionCRUDService permissionCRUDService)
      • setCmsWorkflowParticipantService

        public void setCmsWorkflowParticipantService​(CMSWorkflowParticipantService cmsWorkflowParticipantService)
      • getUserService

        protected UserService getUserService()
      • setUserService

        public void setUserService​(UserService userService)