Class WizardMigrator
java.lang.Object
org.bidib.wizard.migration.migrator.WizardMigrator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckAndPerformForcedBackup(String targetPath, File forcedBackupLogFile) checkAndPerformMigration(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) findAllNodesInWizardLabels(Class<?>[] migratorClassHolder, String... searchpaths) Find all nodes in wizard labels.getForcedBackupLogfile(String path) getMigrationLogfile(String path) protected org.bidib.jbidibc.core.schema.bidiblabels.NodeLabelsmigrateLabels(ApplicationContext context, Class<?> migratorClass, long uniqueId, String... searchpaths) Migrate the labels.
-
Constructor Details
-
WizardMigrator
public WizardMigrator()
-
-
Method Details
-
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
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 storedmigrationLogFile- the migration log filesearchRoots- the search roots
-
executeMigrationTask
-
getMigrationLogfile
-
getForcedBackupLogfile
-
checkAndPerformForcedBackup
-