Module org.elasticsearch.xcore
Class RoleDescriptor.IndicesPrivileges
java.lang.Object
org.elasticsearch.xpack.core.security.authz.RoleDescriptor.IndicesPrivileges
- All Implemented Interfaces:
Comparable<RoleDescriptor.IndicesPrivileges>,Writeable,ToXContent,ToXContentObject
- Direct Known Subclasses:
RoleDescriptor.IndicesPrivileges.ImplicitlyGranted
- Enclosing class:
RoleDescriptor
public static class RoleDescriptor.IndicesPrivileges
extends Object
implements ToXContentObject, Writeable, Comparable<RoleDescriptor.IndicesPrivileges>
A class representing permissions for a group of indices mapped to
privileges, field permissions, and a query.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final classIn-memory marker subclass used only when rendering the get-roles API response.Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCopy constructor used by subclasses that wrap an existing instance with response-only decorations (seeRoleDescriptor.IndicesPrivileges.ImplicitlyGranted). -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuilder()intbooleanString[]String[]String[]String[]getQuery()booleanbooleaninthashCode()booleanbooleanbooleantoString()toXContent(XContentBuilder builder, ToXContent.Params params) static voidwrite(StreamOutput out, RoleDescriptor.IndicesPrivileges privileges) voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Constructor Details
-
IndicesPrivileges
Copy constructor used by subclasses that wrap an existing instance with response-only decorations (seeRoleDescriptor.IndicesPrivileges.ImplicitlyGranted). All identity-defining state is shallow-copied; subclasses must not introduce new state that affects equality, ordering, or wire format. -
IndicesPrivileges
- Throws:
IOException
-
-
Method Details
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
builder
-
getIndices
-
getPrivileges
-
getGrantedFields
-
getDeniedFields
-
getQuery
-
isUsingDocumentLevelSecurity
public boolean isUsingDocumentLevelSecurity() -
isUsingFieldLevelSecurity
public boolean isUsingFieldLevelSecurity() -
isUsingDocumentOrFieldLevelSecurity
public boolean isUsingDocumentOrFieldLevelSecurity() -
allowRestrictedIndices
public boolean allowRestrictedIndices() -
hasDeniedFields
public boolean hasDeniedFields() -
hasGrantedFields
public boolean hasGrantedFields() -
toString
-
equals
-
hashCode
public int hashCode() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
write
public static void write(StreamOutput out, RoleDescriptor.IndicesPrivileges privileges) throws IOException - Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<RoleDescriptor.IndicesPrivileges>
-