Class PutPrivilegesRequest
java.lang.Object
org.elasticsearch.client.security.PutPrivilegesRequest
- All Implemented Interfaces:
Validatable,org.elasticsearch.common.xcontent.ToXContent,org.elasticsearch.common.xcontent.ToXContentObject
public final class PutPrivilegesRequest extends java.lang.Object implements Validatable, org.elasticsearch.common.xcontent.ToXContentObject
Request object for creating/updating application privileges.
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PutPrivilegesRequest(java.util.List<ApplicationPrivilege> privileges, RefreshPolicy refreshPolicy) -
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)java.util.Map<java.lang.String,java.util.List<ApplicationPrivilege>>getPrivileges()RefreshPolicygetRefreshPolicy()inthashCode()org.elasticsearch.common.xcontent.XContentBuildertoXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params)
-
Constructor Details
-
PutPrivilegesRequest
public PutPrivilegesRequest(java.util.List<ApplicationPrivilege> privileges, @Nullable RefreshPolicy refreshPolicy)
-
-
Method Details
-
getPrivileges
- Returns:
- a map of application name to list of
ApplicationPrivileges
-
getRefreshPolicy
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
toXContent
public org.elasticsearch.common.xcontent.XContentBuilder toXContent(org.elasticsearch.common.xcontent.XContentBuilder builder, org.elasticsearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.elasticsearch.common.xcontent.ToXContent- Throws:
java.io.IOException
-