Usage
This plugin type identifies a plugin that is aware of app import and export events.
Common use cases:
Extract some used values in the app and export & import them together.
Import additional data.
Adding post-processing after import or export.
Interface Class
org.joget.apps.app.model.AppImportExportAwarePlugin
This plugin interface can be used together with other plugin types.
The plugin implemented this interface will be aware of the app import and export events.
The
CustomBuilderCallback
plugin interface is refactored to extend this interface
Interface Methods
importAppConfigHtml
public java.lang.String importAppConfigHtml()
Used to inject html into the import app configuration page
importAppPostProcessing
public void importAppPostProcessing(org.joget.apps.app.model.AppDefinition appDef, byte[] zip)
To do some post processing after import based on the import app definition and the zip file
exportAppConfigHtml
public java.lang.String exportAppConfigHtml()
Used to inject html into the export app configuration page
exportAppPostProcessing
public void exportAppPostProcessing(org.joget.apps.app.model.AppDefinition appDef, java.util.zip.ZipOutputStream zip)
To do some post processing to the exported zip based on the app definition
Sample Plugin
SampleConsolePagePlugin
For testing purposes, this plugin injects a line to the config page and adds/reads a txt file to/from the .jwa.