Interface CMSWorkflowDao

All Known Implementing Classes:
DefaultCMSWorkflowDao

public interface CMSWorkflowDao
The Interface CMSVersionDao for finding WorkflowModel objects.
  • Method Details

    • findAllWorkflowsByAttachedItems

      List<WorkflowModel> findAllWorkflowsByAttachedItems(List<? extends CMSItemModel> items, Set<CronJobStatus> statuses)
      This method finds all the WorkflowModel, with the specified workflow statuses, to which the given items are attached to. If the items are not attached to any workflow for the given statuses, the list will be empty.
      Parameters:
      items - - the CMS Items for which to find the workflows they are attached to.
      statuses - - the workflow statuses used to filter the result
      Returns:
      the list of WorkflowModel to which the given pages are attached to; never null.
    • findWorkflowsByAttachedItems

      SearchResult<WorkflowModel> findWorkflowsByAttachedItems(List<? extends CMSItemModel> items, Set<CronJobStatus> statuses, PageableData pageableData)
      This is the paginated version of findAllWorkflowsByAttachedItems(List, Set)
      Parameters:
      items - - the CMS Items for which to find the workflows they are attached to.
      statuses - - the workflow statuses used to filter the result
      pageableData - - the pagination object used to set the page index and page size
      Returns:
      the search result object containing the resulting the list of WorkflowModel to which the given pages are attached to and the pagination object; never null.
    • findWorkflowForCode

      Optional<WorkflowModel> findWorkflowForCode(String code)
      This method returns the WorkflowModel for the provided code.
      Parameters:
      code - - the code of the WorkflowModel.
      Returns:
      the WorkflowModel to for the provided input code.