类 IndicesPrivileges

java.lang.Object
org.easysearch.client.security.user.privileges.AbstractIndicesPrivileges
org.easysearch.client.security.user.privileges.IndicesPrivileges
所有已实现的接口:
org.easysearch.common.xcontent.ToXContent, org.easysearch.common.xcontent.ToXContentObject

public final class IndicesPrivileges
extends AbstractIndicesPrivileges
implements org.easysearch.common.xcontent.ToXContentObject
Represents privileges over indices. There is a canonical set of privilege names (eg. IndicesPrivileges#READ_PRIVILEGE_NAME) but there is flexibility in the definition of finer grained, more specialized, privileges. This also encapsulates field and document level security privileges. These allow to control what fields or documents are readable or queryable.
  • 方法详细资料

    • getFieldSecurity

      public AbstractIndicesPrivileges.FieldSecurity getFieldSecurity()
      The combination of the granted and denied document fields. May be null, in which case no field level security is applicable, and all the document's fields are granted access to.
    • getQuery

      @Nullable public java.lang.String getQuery()
      A query limiting the visible documents in the indices. Can be null, in which case all documents are visible.
    • isUsingDocumentLevelSecurity

      public boolean isUsingDocumentLevelSecurity()
      If true some documents might not be visible. Only the documents matching query will be readable.
      指定者:
      isUsingDocumentLevelSecurity 在类中 AbstractIndicesPrivileges
    • isUsingFieldLevelSecurity

      public boolean isUsingFieldLevelSecurity()
      If true some document fields might not be visible.
      指定者:
      isUsingFieldLevelSecurity 在类中 AbstractIndicesPrivileges
    • equals

      public boolean equals​(java.lang.Object o)
      覆盖:
      equals 在类中 java.lang.Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • toString

      public java.lang.String toString()
      覆盖:
      toString 在类中 java.lang.Object
    • toXContent

      public org.easysearch.common.xcontent.XContentBuilder toXContent​(org.easysearch.common.xcontent.XContentBuilder builder, org.easysearch.common.xcontent.ToXContent.Params params) throws java.io.IOException
      指定者:
      toXContent 在接口中 org.easysearch.common.xcontent.ToXContent
      抛出:
      java.io.IOException
    • fromXContent

      public static IndicesPrivileges fromXContent​(org.easysearch.common.xcontent.XContentParser parser)
    • builder

      public static IndicesPrivileges.Builder builder()