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
ConstructorDescriptionUserIndicesPrivileges(Collection<String> indices, Collection<String> privileges, boolean allowRestrictedIndices, Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, Collection<String> query)
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static UserIndicesPrivileges
fromXContent(org.elasticsearch.common.xcontent.XContentParser parser)
int
hashCode()
boolean
Iftrue
some documents might not be visible.boolean
Iftrue
some 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.common.xcontent.XContentParser parser) throws IOException- Throws:
IOException
-
getFieldSecurity
-
getQueries
-
isUsingDocumentLevelSecurity
public boolean isUsingDocumentLevelSecurity()Description copied from class:AbstractIndicesPrivileges
Iftrue
some documents might not be visible. Only the documents matchingquery
will be readable.- Specified by:
isUsingDocumentLevelSecurity
in classAbstractIndicesPrivileges
-
isUsingFieldLevelSecurity
public boolean isUsingFieldLevelSecurity()Description copied from class:AbstractIndicesPrivileges
Iftrue
some document fields might not be visible.- Specified by:
isUsingFieldLevelSecurity
in classAbstractIndicesPrivileges
-
equals
-
hashCode
public int hashCode() -
toString
-