Interface CMSWorkflowFacade
-
- All Known Implementing Classes:
DefaultCMSWorkflowFacade
public interface CMSWorkflowFacadeFacade interface which deals with methods to manage workflows with CmsItems attached to them.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CMSWorkflowDatacreateAndStartWorkflow(CMSWorkflowData workflowData)Creates and starts a workflow in the given catalog version with the workflow data provided.CMSWorkflowDataeditWorkflow(java.lang.String workflowCode, CMSWorkflowData workflowData)Updates the workflow with the provided data.SearchResult<CMSWorkflowData>findAllWorkflows(CMSWorkflowData workflowData, PageableData pageableData)Finds all workflows containing the given attachment for the specified workflow statuses.java.util.List<CMSWorkflowEditableItemData>getSessionUserEditableItems(java.util.List<java.lang.String> itemUids)Returns a list ofCMSWorkflowEditableItemDatathat informs whether each item is editable or not by the session user.CMSWorkflowDatagetWorkflowForCode(java.lang.String workflowCode)Returns the workflow by its code.CMSWorkflowDataperformOperation(java.lang.String workflowCode, CMSWorkflowOperationData cmsWorkflowOperationData)Performs different operations defined byCMSWorkflowOperationon the workflow.
-
-
-
Method Detail
-
createAndStartWorkflow
CMSWorkflowData createAndStartWorkflow(CMSWorkflowData workflowData)
Creates and starts a workflow in the given catalog version with the workflow data provided.- Parameters:
workflowData- - the data used to create the workflow.- Returns:
- The data of the newly created and started workflow
-
performOperation
CMSWorkflowData performOperation(java.lang.String workflowCode, CMSWorkflowOperationData cmsWorkflowOperationData)
Performs different operations defined byCMSWorkflowOperationon the workflow.- Parameters:
workflowCode- - the code corresponding to theWorkflowModelcmsWorkflowOperationData- - the DTO object containing all the information about operation to be performed- Returns:
- The data of the modified workflow.
- Throws:
UnknownIdentifierException- if a workflow cannot be found for the provided workflowCode.
-
findAllWorkflows
SearchResult<CMSWorkflowData> findAllWorkflows(CMSWorkflowData workflowData, PageableData pageableData)
Finds all workflows containing the given attachment for the specified workflow statuses.- Parameters:
workflowData- - the workflow dto containing the attachment uuid and the workflow statuses that will be used to filter the result set.pageableData- - the pageable dto determining the page size and index.- Returns:
- the paginated result of workflow data
-
editWorkflow
CMSWorkflowData editWorkflow(java.lang.String workflowCode, CMSWorkflowData workflowData)
Updates the workflow with the provided data.- Parameters:
workflowCode- - the code corresponding to theWorkflowModelworkflowData- - the workflow dto to be updated.- Returns:
- the updated workflow data.
- Throws:
UnknownIdentifierException- if a workflow cannot be found for the provided workflowCode.
-
getWorkflowForCode
CMSWorkflowData getWorkflowForCode(java.lang.String workflowCode)
Returns the workflow by its code.- Parameters:
workflowCode- - the workflow code- Returns:
- the workflow data
- Throws:
UnknownIdentifierException- if a workflow cannot be found for the provided workflowCode.
-
getSessionUserEditableItems
java.util.List<CMSWorkflowEditableItemData> getSessionUserEditableItems(java.util.List<java.lang.String> itemUids)
Returns a list ofCMSWorkflowEditableItemDatathat informs whether each item is editable or not by the session user.- Parameters:
itemUids- the list of item uids to verify.- Returns:
- the list of
CMSWorkflowEditableItemData
-
-