public abstract class BaseExportProcessor extends Object
Constructor and Description |
---|
BaseExportProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
addExportHandler(ExportHandler exportHandler)
Adds an
ExportHandler to the end of the list of Export Handlers. |
abstract void |
exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir,
OutputStream outputStream,
String filePath) |
abstract void |
exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
OutputStream outputStream,
String filePath) |
String |
getPath() |
org.pentaho.platform.api.repository2.unified.IUnifiedRepository |
getUnifiedRepository() |
abstract File |
performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile)
Performs the export process, returns a zip File object
|
void |
setPath(String path) |
void |
setUnifiedRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository unifiedRepository) |
public void addExportHandler(ExportHandler exportHandler)
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 dataexportHandler
- public String getPath()
public void setPath(String path)
path
- public org.pentaho.platform.api.repository2.unified.IUnifiedRepository getUnifiedRepository()
public void setUnifiedRepository(org.pentaho.platform.api.repository2.unified.IUnifiedRepository unifiedRepository)
unifiedRepository
- public abstract File performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile) throws ExportException, IOException
ExportException
- indicates an error in import processingIOException
public abstract void exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir, OutputStream outputStream, String filePath) throws ExportException, IOException
repositoryDir
- outputStream
- ExportException
IOException
public abstract void exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, OutputStream outputStream, String filePath) throws ExportException, IOException
repositoryFile
- outputStream
- ExportException
IOException