Class ApplicationPrivilege
- java.lang.Object
-
- org.elasticsearch.client.security.user.privileges.ApplicationPrivilege
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public final class ApplicationPrivilege extends Object implements 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 Classes Modifier and Type Class Description static classApplicationPrivilege.Builder-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ConstructingObjectParser<ApplicationPrivilege,String>PARSER-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description ApplicationPrivilege(String application, String name, Collection<String> actions, Map<String,Object> metadata)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ApplicationPrivilege.Builderbuilder()booleanequals(Object o)Set<String>getActions()StringgetApplication()Map<String,Object>getMetadata()StringgetName()inthashCode()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
PARSER
public static final ConstructingObjectParser<ApplicationPrivilege,String> PARSER
-
-
Method Detail
-
getApplication
public String getApplication()
-
getName
public String getName()
-
builder
public static ApplicationPrivilege.Builder builder()
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
-