Package org.keycloak.models.workflow
Class DefaultWorkflowProvider
java.lang.Object
org.keycloak.models.workflow.DefaultWorkflowProvider
- All Implemented Interfaces:
WorkflowProvider,Provider
-
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(Workflow workflow, ResourceType type, String resourceId) voidactivateForAllEligibleResources(Workflow workflow) voidclose()voiddeactivate(Workflow workflow, String resourceId) Returns aResourceTypeSelectorfor the specified resource type.getScheduledWorkflowsByResource(String resourceId) getWorkflow(String id) voidmigrateScheduledResources(String stepIdFrom, String stepIdTo) Migrates scheduled resources from one workflow step to another.voidremoveWorkflow(Workflow workflow) voidvoidsubmit(WorkflowEvent event) toRepresentation(Workflow workflow) voidupdateWorkflow(Workflow workflow, WorkflowRepresentation representation) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.keycloak.models.workflow.WorkflowProvider
getWorkflows
-
Method Details
-
getResourceTypeSelector
Description copied from interface:WorkflowProviderReturns aResourceTypeSelectorfor the specified resource type.- Specified by:
getResourceTypeSelectorin interfaceWorkflowProvider- Parameters:
type- the resource type.- Returns:
- the corresponding
ResourceTypeSelector.
-
updateWorkflow
- Specified by:
updateWorkflowin interfaceWorkflowProvider
-
removeWorkflow
- Specified by:
removeWorkflowin interfaceWorkflowProvider
-
getWorkflow
- Specified by:
getWorkflowin interfaceWorkflowProvider
-
getWorkflows
- Specified by:
getWorkflowsin interfaceWorkflowProvider
-
getScheduledWorkflowsByResource
- Specified by:
getScheduledWorkflowsByResourcein interfaceWorkflowProvider
-
submit
- Specified by:
submitin interfaceWorkflowProvider
-
runScheduledSteps
public void runScheduledSteps()- Specified by:
runScheduledStepsin interfaceWorkflowProvider
-
migrateScheduledResources
Description copied from interface:WorkflowProviderMigrates 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.
- Specified by:
migrateScheduledResourcesin interfaceWorkflowProvider- Parameters:
stepIdFrom- the id of the step to migrate from.stepIdTo- the id of the step to migrate to.
-
activate
- Specified by:
activatein interfaceWorkflowProvider
-
deactivate
- Specified by:
deactivatein interfaceWorkflowProvider
-
activateForAllEligibleResources
- Specified by:
activateForAllEligibleResourcesin interfaceWorkflowProvider
-
toRepresentation
- Specified by:
toRepresentationin interfaceWorkflowProvider
-
toModel
- Specified by:
toModelin interfaceWorkflowProvider
-
close
public void close()
-