Package step.migration
Class MigrationTask
- java.lang.Object
-
- step.migration.MigrationTask
-
- Direct Known Subclasses:
MigrateArtefactsToPlans
,MigrateAssertNegation
,MigrateFunctionCallsById
,MigrateSeleniumFunctions
,RemoveLocalFunctions
,ScreenTemplateArtefactTableMigrationTask
,ScreenTemplateFunctionTableExtensionsMigrationTask
,ScreenTemplateMigrationTask
,SetSchedulerTaskAttributes
public abstract class MigrationTask extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected Version
asOfVersion
protected step.core.collections.CollectionFactory
collectionFactory
protected static org.slf4j.Logger
logger
protected MigrationContext
migrationContext
-
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 Version
getAsOfVersion()
protected step.core.collections.Collection<step.core.collections.Document>
getDocumentCollection(java.lang.String name)
abstract void
runDowngradeScript()
Script to be executed when migrating from the version asOfVersion to a version lower than asOfVersionabstract void
runUpgradeScript()
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)
-
-