Module org.elasticsearch.server
Class IndexNameExpressionResolver.SystemResourceAccess
java.lang.Object
org.elasticsearch.cluster.metadata.IndexNameExpressionResolver.SystemResourceAccess
- Enclosing class:
IndexNameExpressionResolver
In this class we collect the system access relevant code. The helper methods provide the following functionalities:
- determining the access to a system index abstraction
- verifying the access to system abstractions and adding the necessary warnings
- determining the access to a system index based on its name
WARNING: we have observed differences in how the access is determined. For now this behaviour is documented and preserved.
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isSystemIndexAbstractionAccessible
(IndexNameExpressionResolver.Context context, IndexAbstraction abstraction) Checks if this system index abstraction should be included when resolving viaIndexNameExpressionResolver.WildcardExpressionResolver.resolveEmptyOrTrivialWildcardWithAllowedSystemIndices(Context, String[])
.
-
Method Details
-
isSystemIndexAbstractionAccessible
public static boolean isSystemIndexAbstractionAccessible(IndexNameExpressionResolver.Context context, IndexAbstraction abstraction) Checks if this system index abstraction should be included when resolving viaIndexNameExpressionResolver.WildcardExpressionResolver.resolveEmptyOrTrivialWildcardWithAllowedSystemIndices(Context, String[])
. NOTE: it behaves differently thanshouldExpandToSystemIndexAbstraction(Context, IndexAbstraction)
because in the case that the access level is BACKWARDS_COMPATIBLE_ONLY it does not include the net-new indices, this is questionable.
-