All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public final class PutPrivilegesResponse extends ActionResponse implements org.elasticsearch.xcontent.ToXContentObject
Response when adding one or more application privileges to the security index. Returns a collection of the privileges that were created (by implication, any other privileges were updated).
  • Constructor Details

  • Method Details

    • created

      public Map<String,List<String>> created()
      Get a list of privileges that were created (as opposed to updated)
      Returns:
      A map from Application Name to a List of privilege names
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException