JDEV_HOME_DIR, SYSTEM_DIR| Constructor and Description |
|---|
ProfileMigrator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.net.URL url) |
boolean |
canMigrate(int category,
java.io.File sourceSystemFile)
Determine whether a given category can be migrated from a given directory.
|
java.lang.String |
getDescription(int category)
Get a one line description for a given migration category.
|
int[] |
getMigrationCategories()
Get an array of unique id values representing available categories to
migrate.
|
boolean |
isSelected(int category)
Determine whether a category has been flagged for migration.
|
java.lang.String[] |
migrate(java.io.File sourceSystemFile,
java.io.File targetSystemFile)
Migrate all flagged categories, from a given source directory, to a given
destination directory.
|
void |
setSelected(int category,
boolean selected)
Flag a category as selected for migration.
|
public int[] getMigrationCategories()
MigratorgetMigrationCategories in interface Migratorpublic java.lang.String getDescription(int category)
MigratorgetDescription in interface Migratorpublic boolean isSelected(int category)
MigratorisSelected in interface Migratorpublic void setSelected(int category,
boolean selected)
MigratorsetSelected in interface Migratorpublic boolean canMigrate(int category,
java.io.File sourceSystemFile)
MigratorcanMigrate in interface Migratorpublic java.lang.String[] migrate(java.io.File sourceSystemFile,
java.io.File targetSystemFile)
Migrator