Class UserIndicesPrivileges
java.lang.Object
org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
org.elasticsearch.client.security.user.privileges.UserIndicesPrivileges
public class UserIndicesPrivileges extends AbstractIndicesPrivileges
Represents an "index" privilege in the
GetUserPrivilegesResponse. This differs from the
IndicesPrivileges" object in a
Role
as it supports an array value for field_security and query.
See the API docs-
Nested Class Summary
Nested classes/interfaces inherited from class org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
AbstractIndicesPrivileges.FieldSecurity -
Field Summary
Fields inherited from class org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, indices, privileges -
Constructor Summary
Constructors Constructor Description UserIndicesPrivileges(java.util.Collection<java.lang.String> indices, java.util.Collection<java.lang.String> privileges, boolean allowRestrictedIndices, java.util.Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, java.util.Collection<java.lang.String> query) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static UserIndicesPrivilegesfromXContent(org.elasticsearch.common.xcontent.XContentParser parser)java.util.Set<AbstractIndicesPrivileges.FieldSecurity>getFieldSecurity()java.util.Set<java.lang.String>getQueries()inthashCode()booleanisUsingDocumentLevelSecurity()Iftruesome documents might not be visible.booleanisUsingFieldLevelSecurity()Iftruesome document fields might not be visible.java.lang.StringtoString()Methods inherited from class org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, getIndices, getPrivilegesMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
UserIndicesPrivileges
public UserIndicesPrivileges(java.util.Collection<java.lang.String> indices, java.util.Collection<java.lang.String> privileges, boolean allowRestrictedIndices, java.util.Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, java.util.Collection<java.lang.String> query)
-
-
Method Details
-
fromXContent
public static UserIndicesPrivileges fromXContent(org.elasticsearch.common.xcontent.XContentParser parser) throws java.io.IOException- Throws:
java.io.IOException
-
getFieldSecurity
-
getQueries
public java.util.Set<java.lang.String> getQueries() -
isUsingDocumentLevelSecurity
public boolean isUsingDocumentLevelSecurity()Description copied from class:AbstractIndicesPrivilegesIftruesome documents might not be visible. Only the documents matchingquerywill be readable.- Specified by:
isUsingDocumentLevelSecurityin classAbstractIndicesPrivileges
-
isUsingFieldLevelSecurity
public boolean isUsingFieldLevelSecurity()Description copied from class:AbstractIndicesPrivilegesIftruesome document fields might not be visible.- Specified by:
isUsingFieldLevelSecurityin classAbstractIndicesPrivileges
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-