Module org.elasticsearch.xcore
Class ConfigurableClusterPrivileges.ManageRolesPrivilege
java.lang.Object
org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivileges.ManageRolesPrivilege
- All Implemented Interfaces:
NamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentFragment,ClusterPrivilege,ConfigurableClusterPrivilege
- Enclosing class:
ConfigurableClusterPrivileges
public static class ConfigurableClusterPrivileges.ManageRolesPrivilege
extends Object
implements ConfigurableClusterPrivilege
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordNested classes/interfaces inherited from interface org.elasticsearch.xpack.core.security.authz.privilege.ConfigurableClusterPrivilege
ConfigurableClusterPrivilege.CategoryNested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.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
ConstructorsConstructorDescriptionManageRolesPrivilege(List<ConfigurableClusterPrivileges.ManageRolesPrivilege.ManageRolesIndexPermissionGroup> manageRolesIndexPermissionGroups) -
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(org.elasticsearch.xcontent.XContentParser parser) toString()org.elasticsearch.xcontent.XContentBuildertoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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
-
ManageRolesPrivilege
public ManageRolesPrivilege(List<ConfigurableClusterPrivileges.ManageRolesPrivilege.ManageRolesIndexPermissionGroup> manageRolesIndexPermissionGroups)
-
-
Method Details
-
getCategory
Description copied from interface:ConfigurableClusterPrivilegeThe category under which this privilege should be rendered when output as XContent.- Specified by:
getCategoryin interfaceConfigurableClusterPrivilege
-
getWriteableName
- Specified by:
getWriteableNamein interfaceNamedWriteable
-
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
createFrom
public static ConfigurableClusterPrivileges.ManageRolesPrivilege createFrom(StreamInput in) throws IOException - Throws:
IOException
-
toXContent
public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.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 interfaceorg.elasticsearch.xcontent.ToXContent- Throws:
IOException
-
parse
public static ConfigurableClusterPrivileges.ManageRolesPrivilege parse(org.elasticsearch.xcontent.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
-