Class AbstractIndicesPrivileges
- java.lang.Object
-
- org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
-
- Direct Known Subclasses:
IndicesPrivileges,UserIndicesPrivileges
public abstract class AbstractIndicesPrivileges extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractIndicesPrivileges.FieldSecurity
-
Field Summary
Fields Modifier and Type Field Description protected java.util.Set<java.lang.String>indicesprotected java.util.Set<java.lang.String>privileges
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.String>getIndices()The indices names covered by the privileges.java.util.Set<java.lang.String>getPrivileges()The privileges acting over indices.abstract booleanisUsingDocumentLevelSecurity()Iftruesome documents might not be visible.abstract booleanisUsingFieldLevelSecurity()Iftruesome document fields might not be visible.
-
-
-
Method Detail
-
getIndices
public java.util.Set<java.lang.String> getIndices()
The indices names covered by the privileges.
-
getPrivileges
public java.util.Set<java.lang.String> getPrivileges()
The privileges acting over indices. There is a canonical predefined set of such privileges, but theStringdatatype allows for flexibility in defining finer grained privileges.
-
isUsingDocumentLevelSecurity
public abstract boolean isUsingDocumentLevelSecurity()
Iftruesome documents might not be visible. Only the documents matchingquerywill be readable.
-
isUsingFieldLevelSecurity
public abstract boolean isUsingFieldLevelSecurity()
Iftruesome document fields might not be visible.
-
-