Class HasPrivilegesRequest
- java.lang.Object
-
- org.elasticsearch.client.security.HasPrivilegesRequest
-
- All Implemented Interfaces:
Validatable,ToXContent,ToXContentObject
public final class HasPrivilegesRequest extends Object implements Validatable, ToXContentObject
Request to determine whether the current user has a list of 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 HasPrivilegesRequest(Set<String> clusterPrivileges, Set<IndicesPrivileges> indexPrivileges, Set<ApplicationResourcePrivileges> applicationPrivileges)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Set<ApplicationResourcePrivileges>getApplicationPrivileges()Set<String>getClusterPrivileges()Set<IndicesPrivileges>getIndexPrivileges()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
-
HasPrivilegesRequest
public HasPrivilegesRequest(@Nullable Set<String> clusterPrivileges, @Nullable Set<IndicesPrivileges> indexPrivileges, @Nullable Set<ApplicationResourcePrivileges> applicationPrivileges)
-
-
Method Detail
-
getIndexPrivileges
public Set<IndicesPrivileges> getIndexPrivileges()
-
getApplicationPrivileges
public Set<ApplicationResourcePrivileges> getApplicationPrivileges()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-