Class GetPrivilegesRequest
- java.lang.Object
-
- org.elasticsearch.client.security.GetPrivilegesRequest
-
- All Implemented Interfaces:
Validatable
public final class GetPrivilegesRequest extends 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(String applicationName, String... privilegeNames)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)static GetPrivilegesRequestgetAllPrivileges()Constructs aGetPrivilegesRequestto request all the privileges defined for all applicationsStringgetApplicationName()static GetPrivilegesRequestgetApplicationPrivileges(String applicationName)Constructs aGetPrivilegesRequestto request all the privileges defined for the specifiedapplicationNameString[]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(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 String getApplicationName()
- Returns:
- the name of the application for which to return certain privileges
-
getPrivilegeNames
public String[] getPrivilegeNames()
- Returns:
- an array of privilege names to return or null if all should be returned
-
-