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 theGetUserPrivilegesResponse. This differs from theIndicesPrivileges" object in aRoleas it supports an array value forfield_securityandquery. 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(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, getPrivileges
-
-
-
-
Constructor Detail
-
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 Detail
-
fromXContent
public static UserIndicesPrivileges fromXContent(XContentParser parser) throws java.io.IOException
- Throws:
java.io.IOException
-
getFieldSecurity
public java.util.Set<AbstractIndicesPrivileges.FieldSecurity> 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
-
-