java.lang.Object
org.elasticsearch.xpack.core.security.authz.ResolvedIndices

public final class ResolvedIndices extends Object
Stores a collection of index names separated into "local" and "remote". This allows the resolution and categorization to take place exactly once per-request.
  • Constructor Details

  • Method Details

    • getLocal

      public List<String> getLocal()
      Returns the collection of index names that have been stored as "local" indices. This is a List because order may be important. For example [ "a*" , "-a1" ] is interpreted differently to [ "-a1", "a*" ]. As a consequence, this list may contain duplicates.
    • getRemote

      public List<String> getRemote()
      Returns the collection of index names that have been stored as "remote" indices.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true if both the local and remote index lists are empty.
    • isNoIndicesPlaceholder

      public boolean isNoIndicesPlaceholder()
      Returns:
      true if the remote index lists is empty, and the local index list contains the no-index-placeholder and nothing else.
    • toArray

      public String[] toArray()