Class ApplicationPrivilege
java.lang.Object
org.elasticsearch.client.security.user.privileges.ApplicationPrivilege
- All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
public final class ApplicationPrivilege
extends Object
implements org.elasticsearch.xcontent.ToXContentObject
Represents an application specific privilege. The application name, privilege name,
actions and metadata are completely managed by the client and can contain arbitrary
string values.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.elasticsearch.xcontent.ConstructingObjectParser<ApplicationPrivilege,String> Fields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionApplicationPrivilege(String application, String name, Collection<String> actions, Map<String, Object> metadata) -
Method Summary
Modifier and TypeMethodDescriptionstatic ApplicationPrivilege.Builderbuilder()booleangetName()inthashCode()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.elasticsearch.xcontent.ConstructingObjectParser<ApplicationPrivilege,String> PARSER
-
-
Constructor Details
-
ApplicationPrivilege
-
-
Method Details
-
getApplication
-
getName
-
getActions
-
getMetadata
-
equals
-
hashCode
public int hashCode() -
builder
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Specified by:
toXContentin interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-