Package org.keycloak.models.workflow
Interface WorkflowProvider
- All Superinterfaces:
org.keycloak.provider.Provider
public interface WorkflowProvider
extends org.keycloak.provider.Provider
-
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.Stream<org.keycloak.representations.workflows.WorkflowRepresentation>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(org.keycloak.representations.workflows.WorkflowRepresentation representation) org.keycloak.representations.workflows.WorkflowRepresentationtoRepresentation(Workflow workflow) voidupdateWorkflow(Workflow workflow, org.keycloak.representations.workflows.WorkflowRepresentation rep) Methods inherited from interface org.keycloak.provider.Provider
close
-
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
void updateWorkflow(Workflow workflow, org.keycloak.representations.workflows.WorkflowRepresentation rep) -
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.
-