Class AbstractIndicesPrivileges
java.lang.Object
org.elasticsearch.client.security.user.privileges.AbstractIndicesPrivileges
- Direct Known Subclasses:
IndicesPrivileges
,UserIndicesPrivileges
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final boolean
-
Method Summary
Modifier and TypeMethodDescriptionboolean
True if the privileges cover restricted internal indices too.The indices names covered by the privileges.The privileges acting over indices.abstract boolean
Iftrue
some documents might not be visible.abstract boolean
Iftrue
some document fields might not be visible.
-
Field Details
-
indices
-
privileges
-
allowRestrictedIndices
protected final boolean allowRestrictedIndices
-
-
Method Details
-
getIndices
The indices names covered by the privileges. -
getPrivileges
The privileges acting over indices. There is a canonical predefined set of such privileges, but theString
datatype allows for flexibility in defining finer grained privileges. -
allowRestrictedIndices
public boolean allowRestrictedIndices()True if the privileges cover restricted internal indices too. Certain indices are reserved for internal services and should be transparent to ordinary users. For that matter, when granting privileges, you also have to toggle this flag to confirm that all indices, including restricted ones, are in the scope of this permission. By default this is false. -
isUsingDocumentLevelSecurity
public abstract boolean isUsingDocumentLevelSecurity()Iftrue
some documents might not be visible. Only the documents matchingquery
will be readable. -
isUsingFieldLevelSecurity
public abstract boolean isUsingFieldLevelSecurity()Iftrue
some document fields might not be visible.
-