Interface ImportExportManager
public interface ImportExportManager
Module-author SPI for the gateway import/export system (
.gwex files), reachable via
GatewayContext.getImportExportManager().
Two related extension points live alongside this interface:
ImportExportContributor— register one per logical content area (e.g.user-lib/pylib, tag values) viaregisterContributor(ImportExportContributor). Contributors appear as selectable items in the export tree.ImportExportDelegate— declared per resource type viaResourceTypeMeta.getImportExportDelegate(). Controls how individual resource types round-trip through the.gwexformat.
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterContributor(ImportExportContributor contributor) Register anImportExportContributorwith the import/export system.
-
Method Details
-
registerContributor
Register anImportExportContributorwith the import/export system. The contributor will appear as a selectable item in the export tree and will be invoked during export/import operations when selected.The contributor's
IDmust be unique across all contributors and must be a non-empty, downward-only relative path segment (no leading/, no..sequences). The ID is used as a directory name inside the.gwexarchive, so this restriction prevents path-traversal escapes.- Parameters:
contributor- the contributor to register.- Throws:
IllegalStateException- if a contributor with the same ID is already registered, or if the contributor's ID is empty, blank, or contains a path-traversal sequence.
-