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
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static GetPrivilegesRequest
Constructs aGetPrivilegesRequest
to request all the privileges defined for all applicationsstatic GetPrivilegesRequest
getApplicationPrivileges
(String applicationName) Constructs aGetPrivilegesRequest
to request all the privileges defined for the specifiedapplicationName
String[]
int
hashCode()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.elasticsearch.client.Validatable
validate
-
Constructor Details
-
GetPrivilegesRequest
-
-
Method Details
-
getAllPrivileges
Constructs aGetPrivilegesRequest
to request all the privileges defined for all applications -
getApplicationPrivileges
Constructs aGetPrivilegesRequest
to 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()
-