| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.migration.NodeMigrator
oracle.ide.model.WorkspaceMigrator
public class WorkspaceMigrator
Workspace migrator. To lookup this migrator use the method
 NodeMigrator.getNodeMigrator(java.lang.String) specifying the name
 identifier: MIGRATOR_NAME.
 Migrator helpers registered with the WorkspaceMigrator
 will execute before migrator helpers registered with
 ProjectMigrator.
| Field Summary | |
|---|---|
static java.lang.String | 
MIGRATOR_NAME
String identifier used to lookup a specific node migrator.  | 
static java.lang.String | 
WORKSPACE_NODE
String identifier used to lookup the workspace node from a given TraversableContext. | 
| Fields inherited from class oracle.ide.migration.NodeMigrator | 
|---|
MIGRATOR_MAP_DATA | 
| Constructor Summary | |
|---|---|
WorkspaceMigrator()
 | 
|
| Method Summary | |
|---|---|
protected  NodeMigratorHelper[] | 
getHelpers(MigrationInfo info)
Get the NodeMigratorHelpers that are newer than the version
  number stored in the project file. | 
 MigrationInfo | 
getMigrationInfo(Node node)
Get the current MigrationInfo for the specified node. | 
protected  java.lang.String | 
getMsg(MigrationInfo[] infos)
Get the wizard welcome page message.  | 
 java.util.List | 
getPages(MigrationInfo[] infos,
         TraversableContext context)
Get the list of wizard pages associated with the specified infos. | 
protected  java.lang.String | 
getSummaryMsg(MigrationInfo[] infos)
Get the message for the wizard summary page.  | 
protected  java.lang.String | 
getTitle()
Get the wizard title.  | 
protected  float | 
getWeight()
Returns the weight which we wish to give to the migrator when migrating it.  | 
protected  void | 
postMigrate(MigrationInfo[] infos,
            TraversableContext context)
Method called after migration is complete.  | 
protected  void | 
preMigrate(MigrationInfo[] infos,
           TraversableContext context)
Method called before migration is initiated.  | 
| Methods inherited from class oracle.ide.migration.NodeMigrator | 
|---|
addHelper, callHelperMigrate, callHelpersMigrate, checkVersioning, checkVersions, doMigration, doMigration, finishMigration, getHelpers, getInfoToMigratorMap, getLookupKey, getMigrationInfos, getNodeMigrator, getTraversableContext, invokeWizard, mapInfoToMigrator, migrate, migrate, removeHelper | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final java.lang.String MIGRATOR_NAME
public static final java.lang.String WORKSPACE_NODE
TraversableContext. Project migrators that need to find
 out the workspace triggering migration can use this constant to
 find the workspace.
 If the TraversableContext.get(WORKSPACE_NODE) method returns a
 null value, it generally implies that the project
 is being migrated directly, without the workspace. This can happen
 when a user opens a project in the context of a workspace already
 opened in the navigator.
| Constructor Detail | 
|---|
public WorkspaceMigrator()
| Method Detail | 
|---|
public java.util.List getPages(MigrationInfo[] infos,
                               TraversableContext context)
NodeMigratorinfos. Clients must use the context object
 to store the data diplayed in these pages.
getPages in class NodeMigratorinfos - migration information about the nodes to migrate. All nodes
 must be of the same type.context - use the context to store the data gathered from the
 pages.
protected final void preMigrate(MigrationInfo[] infos,
                                TraversableContext context)
NodeMigrator
preMigrate in class NodeMigratorinfos - information about the nodes that may require migration.
 All nodes held in the MigrationInfo must be of the same
 type.context - contains a Map that can be obtained from the
 context using the name identifier: NodeMigrator.MIGRATOR_MAP_DATA. The
 information needed to do the migration is held by this map.
protected final void postMigrate(MigrationInfo[] infos,
                                 TraversableContext context)
NodeMigrator
postMigrate in class NodeMigratorinfos - information about the nodes that may require migration.
 All nodes held in the MigrationInfo must be of the same
 type.context - contains addin specific migration data that is
 passed on to the helpers such that they can use that information
 when migrating their data.protected java.lang.String getMsg(MigrationInfo[] infos)
NodeMigrator
getMsg in class NodeMigratorprotected java.lang.String getTitle()
NodeMigrator
getTitle in class NodeMigratorprotected java.lang.String getSummaryMsg(MigrationInfo[] infos)
NodeMigrator
getSummaryMsg in class NodeMigratorprotected float getWeight()
NodeMigrator
getWeight in class NodeMigratorpublic MigrationInfo getMigrationInfo(Node node)
NodeMigratorMigrationInfo for the specified node.
getMigrationInfo in class NodeMigratornode - the target node for which migration information is being
 requested.protected NodeMigratorHelper[] getHelpers(MigrationInfo info)
NodeMigratorNodeMigratorHelpers that are newer than the version
  number stored in the project file.
getHelpers in class NodeMigrator
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-03  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||