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
-
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()
-
Constructor Details
-
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
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
-