Class WorkflowResource
java.lang.Object
org.keycloak.workflow.admin.resource.WorkflowResource
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ResourceType type, String resourceId, String notBefore) Activate the workflow for the resource.voidactivateAll(String notBefore) voiddeactivate(ResourceType type, String resourceId) Deactivate the workflow for the resource.voiddelete()toRepresentation(Boolean includeId) voidUpdate the workflow configuration.
-
Constructor Details
-
WorkflowResource
-
-
Method Details
-
delete
@DELETE public void delete() -
update
@PUT @Consumes({"application/yaml","application/json"}) public void update(WorkflowRepresentation rep) Update the workflow configuration. The method does not update the workflow steps. -
toRepresentation
@GET @Produces({"application/yaml","application/json"}) public WorkflowRepresentation toRepresentation(@QueryParam("includeId") Boolean includeId) -
activate
@POST @Path("activate/{type}/{resourceId}") public void activate(@PathParam("type") ResourceType type, @PathParam("resourceId") String resourceId, @QueryParam("notBefore") String notBefore) Activate the workflow for the resource.- Parameters:
type- the resource typeresourceId- the resource idnotBefore- optional value representing the time to schedule the first workflow step, overriding the first step time configuration (after). The value is either an integer representing the seconds from now, an integer followed by 'ms' representing milliseconds from now, or an ISO-8601 date string.
-
activateAll
-
deactivate
@POST @Consumes("application/json") @Path("deactivate/{type}/{resourceId}") public void deactivate(@PathParam("type") ResourceType type, @PathParam("resourceId") String resourceId) Deactivate the workflow for the resource.- Parameters:
type- the resource typeresourceId- the resource id
-