Class GetPrivilegesRequest
- java.lang.Object
-
- org.elasticsearch.client.security.GetPrivilegesRequest
-
- All Implemented Interfaces:
Validatable
public final class GetPrivilegesRequest extends java.lang.Object implements Validatable
Request object to get application privilege(s)
-
-
Field Summary
-
Fields inherited from interface org.elasticsearch.client.Validatable
EMPTY
-
-
Constructor Summary
Constructors Constructor Description GetPrivilegesRequest(java.lang.String applicationName, java.lang.String... privilegeNames)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object o)static GetPrivilegesRequestgetAllPrivileges()Constructs aGetPrivilegesRequestto request all the privileges defined for all applicationsjava.lang.StringgetApplicationName()static GetPrivilegesRequestgetApplicationPrivileges(java.lang.String applicationName)Constructs aGetPrivilegesRequestto request all the privileges defined for the specifiedapplicationNamejava.lang.String[]getPrivilegeNames()inthashCode()-
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
-
-
-
-
Method Detail
-
getAllPrivileges
public static GetPrivilegesRequest getAllPrivileges()
Constructs aGetPrivilegesRequestto request all the privileges defined for all applications
-
getApplicationPrivileges
public static GetPrivilegesRequest getApplicationPrivileges(java.lang.String applicationName)
Constructs aGetPrivilegesRequestto request all the privileges defined for the specifiedapplicationName- Parameters:
applicationName- the name of the application for which the privileges are requested
-
getApplicationName
public java.lang.String getApplicationName()
- Returns:
- the name of the application for which to return certain privileges
-
getPrivilegeNames
public java.lang.String[] getPrivilegeNames()
- Returns:
- an array of privilege names to return or null if all should be returned
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-