Interface CMSWorkflowDao
-
- All Known Implementing Classes:
DefaultCMSWorkflowDao
public interface CMSWorkflowDao
The Interface CMSVersionDao for findingWorkflowModel
objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<WorkflowModel>
findAllWorkflowsByAttachedItems(java.util.List<? extends CMSItemModel> items, java.util.Set<CronJobStatus> statuses)
This method finds all theWorkflowModel
, with the specified workflow statuses, to which the given items are attached to.java.util.Optional<WorkflowModel>
findWorkflowForCode(java.lang.String code)
This method returns theWorkflowModel
for the provided code.SearchResult<WorkflowModel>
findWorkflowsByAttachedItems(java.util.List<? extends CMSItemModel> items, java.util.Set<CronJobStatus> statuses, PageableData pageableData)
This is the paginated version offindAllWorkflowsByAttachedItems(List, Set)
-
-
-
Method Detail
-
findAllWorkflowsByAttachedItems
java.util.List<WorkflowModel> findAllWorkflowsByAttachedItems(java.util.List<? extends CMSItemModel> items, java.util.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
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 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
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 theWorkflowModel
for the provided code.- Parameters:
code
- - the code of theWorkflowModel
.- Returns:
- the
WorkflowModel
to for the provided input code.
-
-