Class UserIndicesPrivileges
java.lang.Object
org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
org.elasticsearch.client.security.user.privileges.UserIndicesPrivileges
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
ConstructorsConstructorDescriptionUserIndicesPrivileges(Collection<String> indices, Collection<String> privileges, boolean allowRestrictedIndices, Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, Collection<String> query) -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic UserIndicesPrivilegesfromXContent(org.elasticsearch.xcontent.XContentParser parser) inthashCode()booleanIftruesome documents might not be visible.booleanIftruesome document fields might not be visible.toString()Methods inherited from class org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, getIndices, getPrivileges
-
Constructor Details
-
UserIndicesPrivileges
public UserIndicesPrivileges(Collection<String> indices, Collection<String> privileges, boolean allowRestrictedIndices, Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, Collection<String> query)
-
-
Method Details
-
fromXContent
public static UserIndicesPrivileges fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-
getFieldSecurity
-
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
-
hashCode
public int hashCode() -
toString
-