You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Import / Export

Import

Create an Import Command.
This import command will be triggered by a ImportSaveDialogAction linked to ImportFildeDialog. This Dialog should use the FileUpload Filed.

Sequence:

 

  1. Import Workbench Action is clicked (Generic CreateDialogActionDefinition -->ui-admincentral:import).
    1. Get the selected Item from the TreeTable
    2. Call the Action (Creation of a configured Dialog)
  2. Once a file is selected (uploaded), and ckick on the SaveImportDialogAction is performed
    1. Get the Input file as an InputStream
    2. Call the ImportCommand
    3. Event sending(call refresh of the TreeView) and closing Dialog is handled by the presenter.getCallback().onSuccess() call and implementation. 

Export

Create an Export Command (ExportCommand).
This export command used a (ExportStreamer) class in order to create a Vaadin Resource based on the OutputStream containing the xml and trigger the Upload on the client side.

Sequence:

 

  1. ExportAction is clicked (class ExportAction extends CommandActionBase<ExportActionDefinition>)
    1. Fill paramMap used by the Command (path of the Node to export, extension...)
    2. Call the Export Command (create an XML representation of a selected Node, and Fill an OutputStream)
    3. On executePostCommand,
      1. get param back from the Command (OutputStream, File name, mimeType)
      2. Call the ExportStreamer.openFileInBlankWindow(... in order to trigger the Upload request from the client side.

 

Import/Export Action improvement:

Unable to locate Jira server for this macro. It may be due to Application Link configuration.

  • No labels