Module org.elasticsearch.xcore
Class WorkflowResolver
java.lang.Object
org.elasticsearch.xpack.core.security.authz.restriction.WorkflowResolver
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final WorkflowAllows access to Search Application query REST API. -
Method Summary
Modifier and TypeMethodDescriptionReturns all workflows.static WorkflowresolveWorkflowByName(String name) Resolves aWorkflowfrom a given name.static WorkflowresolveWorkflowForRestHandler(String restHandler) Resolves a workflow based on the given REST handler name.
-
Field Details
-
SEARCH_APPLICATION_QUERY_WORKFLOW
Allows access to Search Application query REST API.
-
-
Method Details
-
allWorkflows
Returns all workflows. -
resolveWorkflowByName
Resolves aWorkflowfrom a given name. Workflow names are unique and case-sensitive, hence there can be only oneWorkflowfor a given name.- Parameters:
name- a workflow name- Returns:
- a resolved
Workflow - Throws:
IllegalArgumentException- if a workflow with the given name does not existNullPointerException- if name is null
-
resolveWorkflowForRestHandler
Resolves a workflow based on the given REST handler name.- Parameters:
restHandler- a unique REST handler name- Returns:
- a
Workflowto which the given REST handler belongs ornullif the REST handler does not belong to any workflows
-