Class WizardMigrator
- java.lang.Object
-
- org.bidib.wizard.migration.migrator.WizardMigrator
-
public class WizardMigrator extends Object
-
-
Constructor Summary
Constructors Constructor Description WizardMigrator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcheckAndPerformMigration(String targetPath, File migrationLogFile, String... searchRoots)Check if migration is required and perform the migration is necessary.protected voidexecuteMigrationTask(String targetPath, org.bidib.wizard.migration.migrator.WizardMigrator.MigrationTaskType migrationTask, File migrationLogFile, String... searchRoots)NodesfindAllNodesInWizardLabels(Class<?>[] migratorClassHolder, String... searchpaths)Find all nodes in wizard labels.FilegetMigrationLogfile(String path)protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabelsmigrateLabels(ApplicationContext context, Class<?> migratorClass, long uniqueId, String... searchpaths)Migrate the labels.
-
-
-
Method Detail
-
migrateLabels
protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabels migrateLabels(ApplicationContext context, Class<?> migratorClass, long uniqueId, String... searchpaths)
Migrate the labels.The new (bidib2) labels are stored in the labels subfolder, e.g.
<user.home>\.bidib\labels. The older labels are stored under<user.home>\.BiDiBWizardor at a customized location.- Parameters:
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>\.bidibor<user.home>\.BiDiBWizard.- Returns:
- the node labels
-
findAllNodesInWizardLabels
public Nodes findAllNodesInWizardLabels(Class<?>[] migratorClassHolder, String... searchpaths)
Find all nodes in wizard labels.- Parameters:
searchpath- the search path- Returns:
- the node labels with all nodes
-
checkAndPerformMigration
public String checkAndPerformMigration(String targetPath, File migrationLogFile, String... searchRoots)
Check if migration is required and perform the migration is necessary.- Parameters:
targetPath- the target path were the migration file s are storedsearchRoots- the search rootsmigrationLogFile- the migration log file
-
executeMigrationTask
protected void executeMigrationTask(String targetPath, org.bidib.wizard.migration.migrator.WizardMigrator.MigrationTaskType migrationTask, File migrationLogFile, String... searchRoots)
-
-