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(Collection<String> indices, Collection<String> privileges, boolean allowRestrictedIndices, Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, Collection<String> query)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static UserIndicesPrivilegesfromXContent(XContentParser parser)Set<AbstractIndicesPrivileges.FieldSecurity>getFieldSecurity()Set<String>getQueries()inthashCode()booleanisUsingDocumentLevelSecurity()Iftruesome documents might not be visible.booleanisUsingFieldLevelSecurity()Iftruesome document fields might not be visible.StringtoString()-
Methods inherited from class org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
allowRestrictedIndices, getIndices, getPrivileges
-
-
-
-
Constructor Detail
-
UserIndicesPrivileges
public UserIndicesPrivileges(Collection<String> indices, Collection<String> privileges, boolean allowRestrictedIndices, Collection<AbstractIndicesPrivileges.FieldSecurity> fieldSecurity, Collection<String> query)
-
-
Method Detail
-
fromXContent
public static UserIndicesPrivileges fromXContent(XContentParser parser) throws IOException
- Throws:
IOException
-
getFieldSecurity
public Set<AbstractIndicesPrivileges.FieldSecurity> getFieldSecurity()
-
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
-
-