public class ZipExportProcessor extends BaseExportProcessor
Constructor and Description |
---|
ZipExportProcessor(String path,
org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository,
boolean withManifest)
Encapsulates the logic of registering import handlers, generating the manifest, and performing the export
|
Modifier and Type | Method and Description |
---|---|
void |
exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir,
OutputStream outputStream,
String filePath) |
void |
exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile,
OutputStream outputStream,
String filePath) |
ExportManifest |
getExportManifest() |
List<String> |
getLocaleExportList()
get the list of files we are interested in supporting locale from Spring
|
File |
performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile)
Performs the export process, returns a zip File object
|
void |
setExportManifest(ExportManifest exportManifest) |
void |
setLocaleExportList(List<String> localeExportList) |
addExportHandler, getPath, getUnifiedRepository, setPath, setUnifiedRepository
public ZipExportProcessor(String path, org.pentaho.platform.api.repository2.unified.IUnifiedRepository repository, boolean withManifest)
public File performExport(org.pentaho.platform.api.repository2.unified.RepositoryFile exportRepositoryFile) throws ExportException, IOException
performExport
in class BaseExportProcessor
ExportException
- indicates an error in import processingIOException
public void exportFile(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryFile, OutputStream outputStream, String filePath) throws ExportException, IOException
exportFile
in class BaseExportProcessor
repositoryFile
- outputStream
- ExportManifestFormatException
ExportException
IOException
public void exportDirectory(org.pentaho.platform.api.repository2.unified.RepositoryFile repositoryDir, OutputStream outputStream, String filePath) throws ExportException, IOException
exportDirectory
in class BaseExportProcessor
repositoryDir
- outputStream
- ExportException
IOException
public List<String> getLocaleExportList()
public ExportManifest getExportManifest()
public void setExportManifest(ExportManifest exportManifest)