Package org.keycloak.models.workflow
Interface WorkflowProvider
- All Superinterfaces:
Provider
- All Known Implementing Classes:
DefaultWorkflowProvider
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Workflow workflow, ResourceType type, String resourceId) voidactivateForAllEligibleResources(Workflow workflow) voiddeactivate(Workflow workflow, String resourceId) Returns aResourceTypeSelectorfor the specified resource type.getScheduledWorkflowsByResource(String resourceId) getWorkflow(String id) getWorkflows(String search, Boolean exact, Integer first, Integer max) voidmigrateScheduledResources(String stepIdFrom, String stepIdTo) Migrates scheduled resources from one workflow step to another.voidremoveWorkflow(Workflow workflow) voidvoidsubmit(WorkflowEvent event) toModel(WorkflowRepresentation representation) toRepresentation(Workflow workflow) voidupdateWorkflow(Workflow workflow, WorkflowRepresentation rep)
-
Method Details
-
getResourceTypeSelector
Returns aResourceTypeSelectorfor the specified resource type.- Parameters:
type- the resource type.- Returns:
- the corresponding
ResourceTypeSelector.
-
toModel
-
getWorkflow
-
removeWorkflow
-
getWorkflows
-
getWorkflows
-
getScheduledWorkflowsByResource
-
toRepresentation
-
updateWorkflow
-
activate
-
deactivate
-
submit
-
runScheduledSteps
void runScheduledSteps() -
activateForAllEligibleResources
-
migrateScheduledResources
Migrates scheduled resources from one workflow step to another. The destination step might be a step in the same workflow or a step in a different workflow.
If the resources are being migrated to a different workflow, the following conditions must be met:- the source and destination workflows must support the same resource type;
- all resources must satisfy the activation conditions of the destination workflow.
- Parameters:
stepIdFrom- the id of the step to migrate from.stepIdTo- the id of the step to migrate to.
-