Class PutPrivilegesResponse
java.lang.Object
org.elasticsearch.client.security.PutPrivilegesResponse
Response when creating/updating one or more application privileges to the
security index.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic PutPrivilegesResponse
fromXContent
(org.elasticsearch.xcontent.XContentParser parser) boolean
wasCreated
(String applicationName, String privilegeName) Get response status for the request to create or update application privileges.
-
Constructor Details
-
PutPrivilegesResponse
-
-
Method Details
-
wasCreated
Get response status for the request to create or update application privileges.- Parameters:
applicationName
- application name as specified in the requestprivilegeName
- privilege name as specified in the request- Returns:
true
if the privilege was created,false
if the privilege was updated- Throws:
IllegalArgumentException
- thrown for unknown application name or privilege name.
-
fromXContent
public static PutPrivilegesResponse fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException - Throws:
IOException
-