Module org.elasticsearch.xcore
Class PutPrivilegesRequestBuilder
java.lang.Object
org.elasticsearch.action.ActionRequestBuilder<PutPrivilegesRequest,PutPrivilegesResponse>
org.elasticsearch.xpack.core.security.action.privilege.PutPrivilegesRequestBuilder
- All Implemented Interfaces:
RequestBuilder<PutPrivilegesRequest,,PutPrivilegesResponse> WriteRequestBuilder<PutPrivilegesRequestBuilder>
public final class PutPrivilegesRequestBuilder
extends ActionRequestBuilder<PutPrivilegesRequest,PutPrivilegesResponse>
implements WriteRequestBuilder<PutPrivilegesRequestBuilder>
Request builder for
PutPrivilegesRequest-
Field Summary
Fields inherited from class org.elasticsearch.action.ActionRequestBuilder
action, client, request -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsource(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) Populate the put privileges request using the given source, application name and privilege name The source must contain a top-level object, keyed by application name.Methods inherited from class org.elasticsearch.action.ActionRequestBuilder
execute, execute, get, get, requestMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.action.support.WriteRequestBuilder
request, setRefreshPolicy, setRefreshPolicy
-
Constructor Details
-
PutPrivilegesRequestBuilder
-
-
Method Details
-
source
public PutPrivilegesRequestBuilder source(BytesReference source, org.elasticsearch.xcontent.XContentType xContentType) throws IOException Populate the put privileges request using the given source, application name and privilege name The source must contain a top-level object, keyed by application name. The value for each application-name, is an object keyed by privilege name. The value for each privilege-name is a privilege object which much match the application and privilege names in which it is nested.- Throws:
IOException
-