Interface CMSWorkflowDao

    • Method Detail

      • findAllWorkflowsByAttachedItems

        java.util.List<WorkflowModel> findAllWorkflowsByAttachedItems​(java.util.List<? extends CMSItemModel> items,
                                                                      java.util.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​(java.util.List<? extends CMSItemModel> items,
                                                                 java.util.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

        java.util.Optional<WorkflowModel> findWorkflowForCode​(java.lang.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.