Class GetPrivilegesRequest
java.lang.Object
org.elasticsearch.client.security.GetPrivilegesRequest
- All Implemented Interfaces:
Validatable
Request object to get application privilege(s)
-
Field Summary
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic GetPrivilegesRequestConstructs aGetPrivilegesRequestto request all the privileges defined for all applicationsstatic GetPrivilegesRequestgetApplicationPrivileges(String applicationName) Constructs aGetPrivilegesRequestto request all the privileges defined for the specifiedapplicationNameString[]inthashCode()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.client.Validatable
validate
-
Constructor Details
-
GetPrivilegesRequest
-
-
Method Details
-
getAllPrivileges
Constructs aGetPrivilegesRequestto request all the privileges defined for all applications -
getApplicationPrivileges
Constructs aGetPrivilegesRequestto request all the privileges defined for the specifiedapplicationName- Parameters:
applicationName- the name of the application for which the privileges are requested
-
getApplicationName
- Returns:
- the name of the application for which to return certain privileges
-
getPrivilegeNames
- Returns:
- an array of privilege names to return or null if all should be returned
-
equals
-
hashCode
public int hashCode()
-