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 boolean
equals(java.lang.Object o)
static GetPrivilegesRequest
getAllPrivileges()
Constructs aGetPrivilegesRequest
to request all the privileges defined for all applicationsjava.lang.String
getApplicationName()
static GetPrivilegesRequest
getApplicationPrivileges(java.lang.String applicationName)
Constructs aGetPrivilegesRequest
to request all the privileges defined for the specifiedapplicationName
java.lang.String[]
getPrivilegeNames()
int
hashCode()
-
Constructor Details
-
GetPrivilegesRequest
public GetPrivilegesRequest(@Nullable java.lang.String applicationName, @Nullable java.lang.String... privilegeNames)
-
-
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
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:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-