Package org.keycloak.models.workflow
Class JpaWorkflowStateProvider
java.lang.Object
org.keycloak.models.workflow.JpaWorkflowStateProvider
- All Implemented Interfaces:
WorkflowStateProvider,Provider
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.workflow.WorkflowStateProvider
WorkflowStateProvider.ScheduledStep -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()getDueScheduledSteps(Workflow workflow) getScheduledStep(String workflowId, String resourceId) getScheduledStepsByResource(String resourceId) getScheduledStepsByWorkflow(String workflowId) booleanhasScheduledSteps(String workflowId) Checks whether there are any scheduled steps for the givenworkflowId.voidRemoves the record identified by the specifiedexecutionId.voidDeletes all state records associated with the current realm bound to the session.voidremoveByResource(String resourceId) Deletes the state records associated with the givenresourceId.voidremoveByWorkflow(String workflowId) Removes any record identified by the specifiedworkflowId.voidremoveByWorkflowAndResource(String workflowId, String resourceId) Deletes the state records associated with the givenresourceIdof the givenworkflowId.voidscheduleStep(Workflow workflow, WorkflowStep step, String resourceId, String executionId) 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.WorkflowStateProvider
getScheduledStepsByWorkflow
-
Constructor Details
-
JpaWorkflowStateProvider
-
-
Method Details
-
getScheduledStep
- Specified by:
getScheduledStepin interfaceWorkflowStateProvider
-
scheduleStep
public void scheduleStep(Workflow workflow, WorkflowStep step, String resourceId, String executionId) - Specified by:
scheduleStepin interfaceWorkflowStateProvider
-
getDueScheduledSteps
- Specified by:
getDueScheduledStepsin interfaceWorkflowStateProvider
-
getScheduledStepsByWorkflow
- Specified by:
getScheduledStepsByWorkflowin interfaceWorkflowStateProvider
-
getScheduledStepsByResource
- Specified by:
getScheduledStepsByResourcein interfaceWorkflowStateProvider
-
removeByResource
Description copied from interface:WorkflowStateProviderDeletes the state records associated with the givenresourceId.- Specified by:
removeByResourcein interfaceWorkflowStateProvider- Parameters:
resourceId- the id of the resource.
-
removeByWorkflowAndResource
Description copied from interface:WorkflowStateProviderDeletes the state records associated with the givenresourceIdof the givenworkflowId.- Specified by:
removeByWorkflowAndResourcein interfaceWorkflowStateProvider- Parameters:
workflowId- the id of the workflow.resourceId- the id of the resource.
-
removeByWorkflow
Description copied from interface:WorkflowStateProviderRemoves any record identified by the specifiedworkflowId.- Specified by:
removeByWorkflowin interfaceWorkflowStateProvider- Parameters:
workflowId- the id of the workflow.
-
remove
Description copied from interface:WorkflowStateProviderRemoves the record identified by the specifiedexecutionId.- Specified by:
removein interfaceWorkflowStateProvider
-
removeAll
public void removeAll()Description copied from interface:WorkflowStateProviderDeletes all state records associated with the current realm bound to the session.- Specified by:
removeAllin interfaceWorkflowStateProvider
-
hasScheduledSteps
Description copied from interface:WorkflowStateProviderChecks whether there are any scheduled steps for the givenworkflowId.- Specified by:
hasScheduledStepsin interfaceWorkflowStateProvider- Parameters:
workflowId- the id of the workflow.- Returns:
trueif there are scheduled steps,falseotherwise.
-
close
public void close()
-