Module org.elasticsearch.xcore
Class GetUserPrivilegesResponse.Indices
java.lang.Object
org.elasticsearch.xpack.core.security.action.user.GetUserPrivilegesResponse.Indices
- All Implemented Interfaces:
Writeable,ToXContent,ToXContentObject
- Enclosing class:
GetUserPrivilegesResponse
public static class GetUserPrivilegesResponse.Indices
extends Object
implements ToXContentObject, Writeable
This is modelled on
RoleDescriptor.IndicesPrivileges, with support for multiple DLS and FLS field sets.-
Nested Class Summary
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
ConstructorsConstructorDescriptionIndices(Collection<String> indices, Collection<String> privileges, Set<FieldPermissionsDefinition.FieldGrantExcludeGroup> fieldSecurity, Set<BytesReference> queries, boolean allowRestrictedIndices) Indices(StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleaninthashCode()toString()toXContent(XContentBuilder builder, ToXContent.Params params) 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
-
Indices
public Indices(Collection<String> indices, Collection<String> privileges, Set<FieldPermissionsDefinition.FieldGrantExcludeGroup> fieldSecurity, Set<BytesReference> queries, boolean allowRestrictedIndices) -
Indices
- Throws:
IOException
-
-
Method Details
-
getIndices
-
getPrivileges
-
getFieldSecurity
-
getQueries
-
allowRestrictedIndices
public boolean allowRestrictedIndices() -
toString
-
equals
-
hashCode
public int hashCode() -
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-