Class PutPrivilegesRequest
- java.lang.Object
-
- org.elasticsearch.client.security.PutPrivilegesRequest
-
- All Implemented Interfaces:
Validatable,ToXContent,ToXContentObject
public final class PutPrivilegesRequest extends java.lang.Object implements Validatable, ToXContentObject
Request object for creating/updating application privileges.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
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()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
-
-
-
Constructor Detail
-
PutPrivilegesRequest
public PutPrivilegesRequest(java.util.List<ApplicationPrivilege> privileges, @Nullable RefreshPolicy refreshPolicy)
-
-
Method Detail
-
getPrivileges
public java.util.Map<java.lang.String,java.util.List<ApplicationPrivilege>> getPrivileges()
- Returns:
- a map of application name to list of
ApplicationPrivileges
-
getRefreshPolicy
public RefreshPolicy 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 XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
-