Module org.elasticsearch.security
Class SecurityMigrations.RoleMetadataFlattenedMigration
java.lang.Object
org.elasticsearch.xpack.security.support.SecurityMigrations.RoleMetadataFlattenedMigration
- All Implemented Interfaces:
SecurityMigrations.SecurityMigration
- Enclosing class:
SecurityMigrations
public static class SecurityMigrations.RoleMetadataFlattenedMigration
extends Object
implements SecurityMigrations.SecurityMigration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidmigrate(SecurityIndexManager indexManager, Client client, ActionListener<Void> listener) Method that will execute the actual migration - needs to be idempotent and non-blockingintThe min mapping version required to support this migration.Any node features that are required for this migration to run.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xpack.security.support.SecurityMigrations.SecurityMigration
checkPreConditions
-
Constructor Details
-
RoleMetadataFlattenedMigration
public RoleMetadataFlattenedMigration()
-
-
Method Details
-
migrate
public void migrate(SecurityIndexManager indexManager, Client client, ActionListener<Void> listener) Description copied from interface:SecurityMigrations.SecurityMigrationMethod that will execute the actual migration - needs to be idempotent and non-blocking- Specified by:
migratein interfaceSecurityMigrations.SecurityMigration- Parameters:
indexManager- for the security indexclient- the index clientlistener- listener to provide updates back to caller
-
nodeFeaturesRequired
Description copied from interface:SecurityMigrations.SecurityMigrationAny node features that are required for this migration to run. This makes sure that all nodes in the cluster can handle any changes in behaviour introduced by the migration.- Specified by:
nodeFeaturesRequiredin interfaceSecurityMigrations.SecurityMigration- Returns:
- a set of features needed to be supported or an empty set if no change in behaviour is expected
-
minMappingVersion
public int minMappingVersion()Description copied from interface:SecurityMigrations.SecurityMigrationThe min mapping version required to support this migration. This makes sure that the index has at least the min mapping that is required to support the migration.- Specified by:
minMappingVersionin interfaceSecurityMigrations.SecurityMigration- Returns:
- the minimum mapping version required to apply this migration
-