Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

oracle.ide.model
Class UserPropertiesMigrator

java.lang.Object
  extended by oracle.ide.model.UserPropertiesMigrator
All Implemented Interfaces:
Migrator

public final class UserPropertiesMigrator
extends java.lang.Object
implements Migrator

Migrates the Project user properties.


Field Summary
 
Fields inherited from interface oracle.ide.migration.Migrator
JDEV_HOME_DIR, SYSTEM_DIR
 
Constructor Summary
UserPropertiesMigrator()
           
 
Method Summary
 boolean canMigrate(int category, java.io.File sourceDir)
          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 srcDir, java.io.File dstDir)
          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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPropertiesMigrator

public UserPropertiesMigrator()
Method Detail

getMigrationCategories

public int[] getMigrationCategories()
Description copied from interface: Migrator
Get an array of unique id values representing available categories to migrate.

Specified by:
getMigrationCategories in interface Migrator

getDescription

public java.lang.String getDescription(int category)
Description copied from interface: Migrator
Get a one line description for a given migration category. A null result implies that no UI should be presented to the user for the given category.

Specified by:
getDescription in interface Migrator

canMigrate

public boolean canMigrate(int category,
                          java.io.File sourceDir)
Description copied from interface: Migrator
Determine whether a given category can be migrated from a given directory.

Specified by:
canMigrate in interface Migrator

setSelected

public void setSelected(int category,
                        boolean selected)
Description copied from interface: Migrator
Flag a category as selected for migration.

Specified by:
setSelected in interface Migrator

isSelected

public boolean isSelected(int category)
Description copied from interface: Migrator
Determine whether a category has been flagged for migration.

Specified by:
isSelected in interface Migrator

migrate

public java.lang.String[] migrate(java.io.File srcDir,
                                  java.io.File dstDir)
Description copied from interface: Migrator
Migrate all flagged categories, from a given source directory, to a given destination directory. Does nothing if no categories have been flagged for migration.

Specified by:
migrate in interface Migrator

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1.7.0)

E13403-08

Copyright © 1997, 2013, Oracle. All rights reserved.