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,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
- Enclosing class:
RoleDescriptor
public static class RoleDescriptor.IndicesPrivileges
extends Object
implements org.elasticsearch.xcontent.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 ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbuilder()intbooleanString[]String[]String[]String[]getQuery()booleanbooleaninthashCode()booleanbooleanbooleantoString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
- 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 org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
write
public static void write(StreamOutput out, RoleDescriptor.IndicesPrivileges privileges) throws IOException - Throws:
IOException
-
compareTo
- Specified by:
compareToin interfaceComparable<RoleDescriptor.IndicesPrivileges>
-