Interface ExtensionPointRecordMigrationStrategy.ResourceMigrationAugmenter
- All Known Implementing Classes:
InternalUsersMigrationAugmenter
- Enclosing class:
- ExtensionPointRecordMigrationStrategy
public static interface ExtensionPointRecordMigrationStrategy.ResourceMigrationAugmenter
-
Method Summary
Modifier and TypeMethodDescriptionvoid
augment
(MigrationContext context, PersistentRecord profileRecord, PersistentRecord settingsRecord, ResourceBuilder resourceBuilder) Augment the resource with additional data duringExtensionPointRecordMigrationStrategy.migrate(MigrationContext, PersistentRecord, PersistentRecord)
.default List<org.apache.commons.lang3.tuple.Pair<SRecordMeta<? extends SRecordInstance>,
SFieldBoolean>> Get the pairs of metas and migrated fields that this augmenter potentially migrates.
-
Method Details
-
augment
void augment(MigrationContext context, PersistentRecord profileRecord, @Nullable PersistentRecord settingsRecord, ResourceBuilder resourceBuilder) Augment the resource with additional data duringExtensionPointRecordMigrationStrategy.migrate(MigrationContext, PersistentRecord, PersistentRecord)
.This is called after the migrated resource has been encoded, but before it is turned into a ChangeOperation.
- Parameters:
context
- theMigrationContext
.profileRecord
- the profile record that was just migrated.settingsRecord
- the settings record that was just migrated, ornull
if there is no settings record.resourceBuilder
- theResourceBuilder
building the Resource.
-
getMetaMigrationPairs
default List<org.apache.commons.lang3.tuple.Pair<SRecordMeta<? extends SRecordInstance>,SFieldBoolean>> getMetaMigrationPairs()Get the pairs of metas and migrated fields that this augmenter potentially migrates. Each pair is a meta that is being (potentially only partially) migrated by this augmenter, and the field that represents the migration state for each entry in that table. If this augmenter doesn't care to keep track of what is being migrated (i.e. it doesn't migrate any fields from a record or table) then it should return an empty list.- Returns:
- the pairs of metas and migrated fields that this augmenter migrates.
-