Interface CMSWorkflowDao
- All Known Implementing Classes:
DefaultCMSWorkflowDao
public interface CMSWorkflowDao
The Interface CMSVersionDao for finding
WorkflowModel objects.-
Method Summary
Modifier and TypeMethodDescriptionfindAllWorkflowsByAttachedItems(List<? extends CMSItemModel> items, Set<CronJobStatus> statuses) This method finds all theWorkflowModel, with the specified workflow statuses, to which the given items are attached to.findWorkflowForCode(String code) This method returns theWorkflowModelfor the provided code.findWorkflowsByAttachedItems(List<? extends CMSItemModel> items, Set<CronJobStatus> statuses, PageableData pageableData) This is the paginated version offindAllWorkflowsByAttachedItems(List, Set)
-
Method Details
-
findAllWorkflowsByAttachedItems
List<WorkflowModel> findAllWorkflowsByAttachedItems(List<? extends CMSItemModel> items, Set<CronJobStatus> statuses) This method finds all theWorkflowModel, 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
WorkflowModelto 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 offindAllWorkflowsByAttachedItems(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 resultpageableData- - the pagination object used to set the page index and page size- Returns:
- the search result object containing the resulting the list of
WorkflowModelto which the given pages are attached to and the pagination object; never null.
-
findWorkflowForCode
This method returns theWorkflowModelfor the provided code.- Parameters:
code- - the code of theWorkflowModel.- Returns:
- the
WorkflowModelto for the provided input code.
-