ExportAction adaptation

Last modified by Vincent Massol on 2024/11/19 16:12

 XWiki
 Implementation
 Dormant
 

Description

The ExportAction class, which also manages the PDF-Export, uses currently no consistent and exchangeable interface. Therefore a redesign of the XWiki Export would be favored by us.

class design

This class diagram shows how the WikiExporter interface would be integrated. Also there would be the need of a wrapper class to be compatible with the old PdfExport interface.

CdWikiExport.png

process: determination of the right implementation

The following sequence diagram illustrates the process used to find the right export implementation. Thereby the ExportAction determines the desired export format from the request and the name of the implementation stored in an XWiki document, in concrete as the following key value pairs: <format>=<name>. If no implementation name could be found, the name "default" for the default implementation will be used.
The ExportAction uses the ComponentManager to find all the implementations of the WikiExporter interface. From each of this implementations we determine the FormatType and compare it with the desired key-value-pair for establishing the right implementation. On this one the export method is called to export the document.

SdWikiExport.png


 

Get Connected