Package step.migration
Class MigrationTask
- java.lang.Object
-
- step.migration.MigrationTask
-
- Direct Known Subclasses:
MigrateArtefactsToPlans,MigrateAssertNegation,MigrateSeleniumFunctions,RemoveLocalFunctions,ScreenTemplateArtefactTableMigrationTask,ScreenTemplateFunctionTableExtensionsMigrationTask,ScreenTemplateMigrationTask,SetSchedulerTaskAttributes
public abstract class MigrationTask extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected VersionasOfVersionprotected step.core.collections.CollectionFactorycollectionFactoryprotected static org.slf4j.Loggerloggerprotected MigrationContextmigrationContext
-
Constructor Summary
Constructors Constructor Description MigrationTask(Version asOfVersion, step.core.collections.CollectionFactory collectionFactory, MigrationContext migrationContext)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description VersiongetAsOfVersion()protected step.core.collections.Collection<step.core.collections.Document>getDocumentCollection(java.lang.String name)abstract voidrunDowngradeScript()Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersionabstract voidrunUpgradeScript()Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
-
-
-
Field Detail
-
logger
protected static final org.slf4j.Logger logger
-
asOfVersion
protected final Version asOfVersion
-
migrationContext
protected final MigrationContext migrationContext
-
collectionFactory
protected final step.core.collections.CollectionFactory collectionFactory
-
-
Constructor Detail
-
MigrationTask
public MigrationTask(Version asOfVersion, step.core.collections.CollectionFactory collectionFactory, MigrationContext migrationContext)
-
-
Method Detail
-
getAsOfVersion
public Version getAsOfVersion()
-
runUpgradeScript
public abstract void runUpgradeScript()
Script to be executed when migrating from a version lower than asOfVersion to the version asOfVersion
-
runDowngradeScript
public abstract void runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersion
-
getDocumentCollection
protected step.core.collections.Collection<step.core.collections.Document> getDocumentCollection(java.lang.String name)
-
-