Module org.elasticsearch.xcore
Class ConfigurableClusterPrivileges.ManageApplicationPrivileges
java.lang.Object
org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges.ManageApplicationPrivileges
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentFragment,ClusterPrivilege,ConfigurableClusterPrivilege
- Enclosing class:
ConfigurableClusterPrivileges
public static class ConfigurableClusterPrivileges.ManageApplicationPrivileges
extends Object
implements ConfigurableClusterPrivilege
The
ManageApplicationPrivileges privilege is a ConfigurableClusterPrivilege that grants the
ability to execute actions related to the management of application privileges (Get, Put, Delete) for a subset
of applications (identified by a wildcard-aware application-name).-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivilege
ConfigurableClusterPrivilege.CategoryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuildPermission(ClusterPermission.Builder builder) UsesClusterPermission.Builderto add predicate that later can be used to build aClusterPermission.booleanThe category under which this privilege should be rendered when output as XContent.inthashCode()parse(XContentParser parser) toString()toXContent(XContentBuilder builder, ToXContent.Params params) AConfigurableClusterPrivilegeshould generate a fragment ofXContent, which consists of a single field name, followed by its value (which may be an object, an array, or a simple value).voidwriteTo(StreamOutput out) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentFragment
isFragment
-
Field Details
-
WRITEABLE_NAME
- See Also:
-
-
Constructor Details
-
ManageApplicationPrivileges
-
-
Method Details
-
getCategory
Description copied from interface:ConfigurableClusterPrivilegeThe category under which this privilege should be rendered when output as XContent.- Specified by:
getCategoryin interfaceConfigurableClusterPrivilege
-
getApplicationNames
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
createFrom
public static ConfigurableClusterPrivileges.ManageApplicationPrivileges createFrom(StreamInput in) throws IOException - Throws:
IOException
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException Description copied from interface:ConfigurableClusterPrivilegeAConfigurableClusterPrivilegeshould generate a fragment ofXContent, which consists of a single field name, followed by its value (which may be an object, an array, or a simple value).- Specified by:
toXContentin interfaceConfigurableClusterPrivilege- Specified by:
toXContentin interfaceToXContent- Throws:
IOException
-
parse
public static ConfigurableClusterPrivileges.ManageApplicationPrivileges parse(XContentParser parser) throws IOException - Throws:
IOException
-
toString
-
equals
-
hashCode
public int hashCode() -
buildPermission
Description copied from interface:ClusterPrivilegeUsesClusterPermission.Builderto add predicate that later can be used to build aClusterPermission.- Specified by:
buildPermissionin interfaceClusterPrivilege- Parameters:
builder-ClusterPermission.Builder- Returns:
- an instance of
ClusterPermission.Builder
-