public class WizardMigrator extends Object
| Constructor and Description |
|---|
WizardMigrator() |
| Modifier and Type | Method and Description |
|---|---|
String |
checkAndPerformMigration(String targetPath,
File migrationLogFile,
String... searchRoots)
Check if migration is required and perform the migration is necessary.
|
protected void |
executeMigrationTask(String targetPath,
org.bidib.wizard.migration.migrator.WizardMigrator.MigrationTaskType migrationTask,
File migrationLogFile,
String... searchRoots) |
Nodes |
findAllNodesInWizardLabels(Class<?>[] migratorClassHolder,
String... searchpaths)
Find all nodes in wizard labels.
|
File |
getMigrationLogfile(String path) |
protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels |
migrateLabels(ApplicationContext context,
Class<?> migratorClass,
long uniqueId,
String... searchpaths)
Migrate the labels.
|
protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels migrateLabels(ApplicationContext context, Class<?> migratorClass, long uniqueId, String... searchpaths)
The new (bidib2) labels are stored in the labels subfolder, e.g. <user.home>\.bidib\labels. The older
labels are stored under <user.home>\.BiDiBWizard or at a customized location.
context - the migration contextuniqueId - the uniqueId of the nodesearchpath - the search path. The provided paths are the root path of the locations of the labels, e.g.
<user.home>\.bidib or <user.home>\.BiDiBWizard.public Nodes findAllNodesInWizardLabels(Class<?>[] migratorClassHolder, String... searchpaths)
searchpath - the search pathpublic String checkAndPerformMigration(String targetPath, File migrationLogFile, String... searchRoots)
targetPath - the target path were the migration file s are storedsearchRoots - the search rootsmigrationLogFile - the migration log fileprotected void executeMigrationTask(String targetPath, org.bidib.wizard.migration.migrator.WizardMigrator.MigrationTaskType migrationTask, File migrationLogFile, String... searchRoots)
Copyright © 2019. All rights reserved.