Class IndicesPrivileges

All Implemented Interfaces:

public class IndicesPrivileges
extends java.lang.Object
implements JsonpSerializable
See Also:
API specification
  • Field Details

  • Method Details

    • of

      public static IndicesPrivileges of​(java.util.function.Function<IndicesPrivileges.Builder,​ObjectBuilder<IndicesPrivileges>> fn)
    • fieldSecurity

      @Nullable public final FieldSecurity fieldSecurity()
      The document fields that the owners of the role have read access to.

      API name: field_security

    • names

      public final java.util.List<java.lang.String> names()
      Required - A list of indices (or index name patterns) to which the permissions in this entry apply.

      API name: names

    • privileges

      public final java.util.List<IndexPrivilege> privileges()
      Required - The index level privileges that owners of the role have on the specified indices.

      API name: privileges

    • query

      public final java.util.List<java.lang.String> query()
      A search query that defines the documents the owners of the role have read access to. A document within the specified indices must match this query for it to be accessible by the owners of the role.

      API name: query

    • allowRestrictedIndices

      @Nullable public final java.lang.Boolean allowRestrictedIndices()
      Set to true if using wildcard or regular expressions for patterns that cover restricted indices. Implicitly, restricted indices have limited privileges that can cause pattern tests to fail. If restricted indices are explicitly included in the names list, Elasticsearch checks privileges against these indices regardless of the value set for allow_restricted_indices.

      API name: allow_restricted_indices

    • serialize

      public void serialize​( generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal​( generator, JsonpMapper mapper)
    • setupIndicesPrivilegesDeserializer

      protected static void setupIndicesPrivilegesDeserializer​(ObjectDeserializer<IndicesPrivileges.Builder> op)