Class Role
- java.lang.Object
-
- org.elasticsearch.client.security.user.privileges.Role
-
- All Implemented Interfaces:
ToXContent
,ToXContentObject
public final class Role extends java.lang.Object implements ToXContentObject
Represents an aggregation of privileges. This does not have a name identifier.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Role.Builder
static class
Role.ClusterPrivilegeName
Canonical cluster privilege names.static class
Role.IndexPrivilegeName
Canonical index privilege names.-
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 ParseField
APPLICATIONS
static ParseField
CLUSTER
static ParseField
GLOBAL
static ParseField
INDICES
static ParseField
METADATA
static ParseField
RUN_AS
-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Role.Builder
builder()
boolean
equals(java.lang.Object o)
static Role
fromXContent(XContentParser parser)
java.util.Set<ApplicationResourcePrivileges>
getApplicationResourcePrivileges()
java.util.Set<java.lang.String>
getClusterPrivileges()
GlobalPrivileges
getGlobalApplicationPrivileges()
java.util.Set<IndicesPrivileges>
getIndicesPrivileges()
java.util.Map<java.lang.String,java.lang.Object>
getMetadata()
java.util.Set<java.lang.String>
getRunAsPrivilege()
int
hashCode()
java.lang.String
toString()
XContentBuilder
toXContent(XContentBuilder builder, ToXContent.Params params)
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
CLUSTER
public static final ParseField CLUSTER
-
GLOBAL
public static final ParseField GLOBAL
-
INDICES
public static final ParseField INDICES
-
APPLICATIONS
public static final ParseField APPLICATIONS
-
RUN_AS
public static final ParseField RUN_AS
-
METADATA
public static final ParseField METADATA
-
-
Method Detail
-
getClusterPrivileges
public java.util.Set<java.lang.String> getClusterPrivileges()
-
getGlobalApplicationPrivileges
public GlobalPrivileges getGlobalApplicationPrivileges()
-
getIndicesPrivileges
public java.util.Set<IndicesPrivileges> getIndicesPrivileges()
-
getApplicationResourcePrivileges
public java.util.Set<ApplicationResourcePrivileges> getApplicationResourcePrivileges()
-
getRunAsPrivilege
public java.util.Set<java.lang.String> getRunAsPrivilege()
-
getMetadata
public java.util.Map<java.lang.String,java.lang.Object> getMetadata()
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContent
in interfaceToXContent
- Throws:
java.io.IOException
-
fromXContent
public static Role fromXContent(XContentParser parser)
-
builder
public static Role.Builder builder()
-
-