Environment operations - script to Java migration

The migration tables list the script operations that map to Environment Java™ API methods.

EnvironmentExporter

These script operations can be mapped to the following EnvironmentExporter Java API methods.
Table 1. Script operations that map to the EnvironmentExporter Java API methods
Script operation Java method
new EnvObjectList() createExportList()
exportEnv(EnvObjectList envObjList, String sDocFilePath) export(ExportList exportList, String documentPath)

EnvironmentImporter

These script operations can be mapped to the following EnvironmentImporter Java API methods.
Table 2. Script operations that map to the EnvironmentImporter Java API methods
Script operation Java method
importEnv(String sDocFilePath, [bFromFileSystem]) importEnvironment(Document document)
importEnv(String sDocFilePath, [bFromFileSystem]) importEnvironment(String documentPath)

ExportList

These script operations can be mapped to the following ExportList Java API methods.
Table 3. Script operations that map to the ExportList Java API methods
Script operation Java method
void
EnvObjectList::addObjectByNameToExport
(String sEntityName[, String sObjectType,
[String sActionMode]]
addObject(Type type, Object object, ActionMode actionMode)
void
EnvObjectList::setHierarchyMapToExport
(String sourceHierarchy, String
destHierarchy [,String sActionMode])
addObject(Type type, Object object, ActionMode actionMode)
void
EnvObjectList::setCatalogByNameToExport
(String sCatalog)
addContent(Type type, Object object)
void
EnvObjectList::setHierarchyByNameTo
Export(String sHierarchy)
addContent(Type type, Object object)