| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.migration.NodeMigrator
public abstract class NodeMigrator
The NodeMigrator class is used for migrating nodes from previous versions of JDeveloper to a new JDeveloper version.
 Extensions should register NodeMigratorHelpers to handle customized
 migration of nodes they are interested in. That registration is done
 on the specific implementation of a node migrator. For example,
 workspace migration helpers are registered with the
 WorkspaceMigrator. 
 Extensions access specific migrators by invoking the method
 getNodeMigrator(java.lang.String) specifying the appropriate migrator name
 identifier. For example, to get at the workspace migrator the
 identifier {link oracle.ide.model.WorkspaceMigrator#MIGRATOR_NAME} would
 be used. A migrator identifier is the name of the node class that
 migrator works on. 
 Extensions can find out if migration is under way by calling the
 method getTraversableContext(). When this method returns a
 non-null value extensions can assume a migration operation is in progress.
| Field Summary | |
|---|---|
| static java.lang.String | MIGRATOR_MAP_DATAConstant identifying the migration data stored in the TraversableContext. | 
| Constructor Summary | |
|---|---|
| NodeMigrator() | |
| Method Summary | |
|---|---|
|  void | addHelper(NodeMigratorHelper helper)Deprecated. declare NodeMigratorHelpers declaratively throught the node-migrator hook. | 
| protected  void | callHelperMigrate(NodeMigratorHelper helper,
                  MigrationInfo info,
                  TraversableContext context) | 
| protected  void | callHelpersMigrate(MigrationInfo info,
                   TraversableContext context) | 
| protected  boolean | checkVersioning(MigrationInfo[] infos)Method called before migration is initiated to verify if migration can proceed or not dependning on the versioning status of each URL. | 
|  MigrationInfo.MigrationStatus | checkVersions(MigrationInfo[] infos)Verify if all nodes can be migrated. | 
|  java.util.List | doMigration(java.util.List list,
            TraversableContext context)This method invokes the NodeMigratorHelpers to carry out
 addin specific migrations. | 
|  java.util.List | doMigration(TraversableContext context)Do the actual migration of the nodes. | 
| protected  void | finishMigration(java.util.List infos)Conclude the migration process by saving the migrated objects and updating their migration status. | 
|  NodeMigratorHelperReference[] | getHelperReferences()Returns references to NodeMigratorHelpers. | 
| protected  NodeMigratorHelperReference[] | getHelperReferences(MigrationInfo info)Returns references to NodeMigratorHelpers that are newer than the version number stored in the project file. | 
|  NodeMigratorHelper[] | getHelpers()Deprecated. #getHelperReferences() instead. | 
| protected  NodeMigratorHelper[] | getHelpers(MigrationInfo info)Deprecated. use #getHelperReferences(MigrationInfo) instead. | 
| protected  java.util.Map | getInfoToMigratorMap(TraversableContext context)Gets from the contexttheMapidentified by the
 constantMIGRATOR_MAP_DATA. | 
| static java.lang.String | getLookupKey(Node node)Build the key used to lookup a node migrator. | 
| abstract  MigrationInfo | getMigrationInfo(Node node)Get the current MigrationInfofor the specified node. | 
|  MigrationInfo[] | getMigrationInfos(Node[] nodes)Get the current MigrationInfos for the specified nodes. | 
| protected abstract  java.lang.String | getMsg(MigrationInfo[] infos)Get the wizard welcome page message. | 
| static NodeMigrator | getNodeMigrator(java.lang.String name)Use this method to access the migrator specified by the name. | 
|  java.util.List | getPages(MigrationInfo[] infos,
         TraversableContext context)Get the list of wizard pages associated with the specified infos. | 
| protected abstract  java.lang.String | getSummaryMsg(MigrationInfo[] infos)Get the message for the wizard summary page. | 
| protected abstract  java.lang.String | getTitle()Get the wizard title. | 
|  TraversableContext | getTraversableContext()Returns a non-null TraversableContextwhile migration is in
 progress, otherwise, the value returned isnull. | 
| protected  float | getWeight()Returns the weight which we wish to give to the migrator when migrating it. | 
| protected  MigrationInfo.MigrationStatus | invokeWizard(TraversableContext context,
             java.util.List pages,
             MigrationInfo[] infos)Invoke the migration wizard. | 
| protected  void | mapInfoToMigrator(NodeMigrator key,
                  MigrationInfo info,
                  java.util.Map map)Associate the NodeMigratorspecified with the givenMigrationInfoby storing these in the specifiedmap. | 
|  MigrationInfo | migrate(MigrationInfo info)Migrate the node whose migration information is given. | 
|  MigrationInfo[] | migrate(MigrationInfo[] infos)Method called to migrate the nodes recorded in the specified MigrationInfo. | 
| protected  NodeMigratorHook.MigratorType | migratorType() | 
| 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. | 
|  void | removeHelper(NodeMigratorHelper helper)Remove the specified NodeMigratorHelper. | 
| 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_MAP_DATA
TraversableContext. This information is a Map
 associating a NodeMigrator with the list of
 MigrationInfos.
| Constructor Detail | 
|---|
public NodeMigrator()
| Method Detail | 
|---|
public static NodeMigrator getNodeMigrator(java.lang.String name)
name.
name - a unique name identifying a node migrator. This name must
 be the class name of the nodes the migrator requested is responsible
 for migrating.
name.public static java.lang.String getLookupKey(Node node)
node - the node whose class is used to build the key.public abstract MigrationInfo getMigrationInfo(Node node)
MigrationInfo for the specified node.
node - the target node for which migration information is being
 requested.public final MigrationInfo[] migrate(MigrationInfo[] infos)
MigrationInfo.
infos - information about the nodes that may require migration.
 All nodes held in the MigrationInfo must be of the same
 type.
public TraversableContext getTraversableContext()
TraversableContext while migration is in
 progress, otherwise, the value returned is null.
protected void preMigrate(MigrationInfo[] infos,
                          TraversableContext context)
infos - 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: MIGRATOR_MAP_DATA. The
 information needed to do the migration is held by this map.protected boolean checkVersioning(MigrationInfo[] infos)
infos - information about the nodes that may require migration.
 All nodes held in the MigrationInfo must be of the same
 type.
protected void postMigrate(MigrationInfo[] infos,
                           TraversableContext context)
infos - 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.public MigrationInfo[] getMigrationInfos(Node[] nodes)
MigrationInfos for the specified nodes.
nodes - the target nodes for which migration information is being
 requested. All nodes must be of the same type.
public java.util.List getPages(MigrationInfo[] infos,
                               TraversableContext context)
infos. Clients must use the context object
 to store the data diplayed in these pages.
infos - 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.
public final MigrationInfo migrate(MigrationInfo info)
info - migration information.
public java.util.List doMigration(TraversableContext context)
context.
context - contains a Map that can be obtained from the
 context using the name identifier: MIGRATOR_MAP_DATA. The
 information needed to do the migration is held by this map.
public java.util.List doMigration(java.util.List list,
                                  TraversableContext context)
NodeMigratorHelpers to carry out
 addin specific migrations.
list - migration information about the nodes to migrate.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 void callHelpersMigrate(MigrationInfo info,
                                  TraversableContext context)
protected final void callHelperMigrate(NodeMigratorHelper helper,
                                       MigrationInfo info,
                                       TraversableContext context)
@Deprecated public final void addHelper(NodeMigratorHelper helper)
NodeMigratorHelper.
helper - a node migration helper.public final void removeHelper(NodeMigratorHelper helper)
NodeMigratorHelper.
helper - the node migrator helper to be removed.public MigrationInfo.MigrationStatus checkVersions(MigrationInfo[] infos)
protected abstract java.lang.String getTitle()
protected abstract java.lang.String getMsg(MigrationInfo[] infos)
protected abstract java.lang.String getSummaryMsg(MigrationInfo[] infos)
protected MigrationInfo.MigrationStatus invokeWizard(TraversableContext context,
                                                     java.util.List pages,
                                                     MigrationInfo[] infos)
@Deprecated public NodeMigratorHelper[] getHelpers()
NodeMigratorHelpers.
public NodeMigratorHelperReference[] getHelperReferences()
protected NodeMigratorHook.MigratorType migratorType()
@Deprecated protected NodeMigratorHelper[] getHelpers(MigrationInfo info)
NodeMigratorHelpers that are newer than the version
  number stored in the project file.
protected NodeMigratorHelperReference[] getHelperReferences(MigrationInfo info)
protected java.util.Map getInfoToMigratorMap(TraversableContext context)
context the Map identified by the
 constant MIGRATOR_MAP_DATA.
protected void mapInfoToMigrator(NodeMigrator key,
                                 MigrationInfo info,
                                 java.util.Map map)
NodeMigrator specified with the given
 MigrationInfo by storing these in the specified map.
key - the node migrator.info - the migration information.map - map associating the migrator with the migration information.protected final void finishMigration(java.util.List infos)
infos - a list of objects that may have been migrated.protected float getWeight()
| 
 | Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.4.0) E17493-05 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||