|
Extension SDK 10.1.2 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The NodeMigratorHelper interface should be implemented by addins that need to migrate documents from previous versions of JDeveloper to a new JDeveloper version.
Addins that implement this interface need to register an instance of
their implementation with the appropriate node migrator. Specific
node migrators are looked up using the method:
NodeMigrator@getNodeMigrator
. The key used to lookup a migrator
is built by calling the NodeMigrator@getLookupKey
passing the
class name of the node type handled by the migrator sought.
A node migrator can also be located using the migrator name constant generally defined in a migrator class. By convention, that constant is named: MIGRATOR_NAME. For example, to get at the workspace migrator do:
NodeMigrator.getNodeMigrator( WorkspaceMigrator.MIGRATOR_NAME );
This call returns the workspace migrator if available, otherwise, it
returns null
.
Method Summary | |
java.util.List |
getPages(MigrationInfo[] infos,
TraversableContext context)
Get the traversal pages to be displayed by the node migration wizard. |
void |
migrate(MigrationInfo[] infos,
TraversableContext context)
Method called to migrate the nodes recorded in the specified MigrationInfo . |
Method Detail |
public void migrate(MigrationInfo[] infos, TraversableContext context)
MigrationInfo
.
infos
- information about the nodes that may require migration.
Addins that need to get at the node should do so by calling the
MigrationInfo.getNodeCopy()
method. Addins should never get
at the original node.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 java.util.List getPages(MigrationInfo[] infos, TraversableContext context)
context
object. This object is given to the page when the user navigates
to it.
infos
- information about the nodes that may require migration.
Addins that need to get at the node should do so by calling the
MigrationInfo.getNodeCopy()
method. Addins should never get
at the original node.context
- contains addin specific migration data that is
passed on to the helpers such that they can use that information
when migrating their data.
|
Extension SDK | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.