Module org.elasticsearch.server
Interface ProjectRoutingResolver
public interface ProjectRoutingResolver
Filter for the target projects based on the provided project routing string.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ProjectRoutingResolverNo-op router - just returns the provided target projects.static final StringThe reserved term for representing the origin project in project routing. -
Method Summary
Modifier and TypeMethodDescriptionresolve(String projectRouting, TargetProjects targetProjects) Filters the specified TargetProjects based on the provided project routing string
-
Field Details
-
ORIGIN
The reserved term for representing the origin project in project routing.- See Also:
-
NOOP
No-op router - just returns the provided target projects.
-
-
Method Details
-
resolve
Filters the specified TargetProjects based on the provided project routing string- Parameters:
projectRouting- the project_routing specified in the request objecttargetProjects- The target projects to be filtered- Returns:
- A new TargetProjects instance containing only the projects that match the project routing.
-