Class BaseExportProcessor

  • Direct Known Subclasses:
    SimpleExportProcessor, ZipExportProcessor

    public abstract class BaseExportProcessor
    extends Object
    A BaseExportProcessor subclass should encapsulate all logic for creating and assembling export file. It should also handle the desired output format. Examples:

    SimpleExportProcessor - Export single file "as-is" ZipExportProcessor - Export single file or directory as .zip

    • Constructor Detail

      • BaseExportProcessor

        public BaseExportProcessor()
    • Method Detail

      • addExportHandler

        public void addExportHandler​(ExportHandler exportHandler)
        Adds an ExportHandler to the end of the list of Export Handlers. The first ExportHandler added will be the first to get a chance to process the data
        Parameters:
        exportHandler -
      • getPath

        public String getPath()
        Returns:
      • setPath

        public void setPath​(String path)
        Parameters:
        path -
      • getUnifiedRepository

        public org.pentaho.platform.api.repository2.unified.IUnifiedRepository getUnifiedRepository()
        Returns:
      • setUnifiedRepository

        public void setUnifiedRepository​(org.pentaho.platform.api.repository2.unified.IUnifiedRepository unifiedRepository)
        Parameters:
        unifiedRepository -
      • performExport

        public abstract File performExport​(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile)
                                    throws ExportException,
                                           IOException
        Performs the export process, returns a zip File object
        Throws:
        ExportException - indicates an error in import processing
        IOException