@PublicSpi public interface DashboardGadgetHandler
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
transformUserPreferencesForExport(String uriOrModuleKey,
Map<String,String> userPreferences,
ExportContext exportContext)
Invoked when a configuration is being exported.
|
Map<String,String> |
transformUserPreferencesForImport(String uriOrModuleKey,
Map<String,String> userPreferences,
ImportContext importContext)
Invoked when a configuration is being imported.
|
Map<String,String> transformUserPreferencesForExport(String uriOrModuleKey, Map<String,String> userPreferences, ExportContext exportContext)
Implementers may call ConfigurationReferenceCollector
methods to handle references to
other configuration objects.
uriOrModuleKey
- the URI of the currently exported dashboard gadget or the module key of the currently exported dashboard itemuserPreferences
- a map of user preferences that are configured for the currently exported dashboard gadget.exportContext
- the context of the export operation.transformUserPreferencesForImport(String, Map, ImportContext)
when the configuration is being deployed.ExportContext
Map<String,String> transformUserPreferencesForImport(String uriOrModuleKey, Map<String,String> userPreferences, ImportContext importContext)
Implementers can call ConfigurationReferenceLookup
methods to retrieve the respective
matching configuration objects referred with ConfigurationReferenceCollector
.
uriOrModuleKey
- the URI of the currently exported dashboard gadget or the module key of the currently exported dashboard itemuserPreferences
- the map which was returned by the invocation of transformUserPreferencesForExport(String, Map, ExportContext)
.importContext
- the context of the import operation.ImportContext
Copyright © 2022. All rights reserved.