public class PRPTImportHandler extends RepositoryFileImportFileHandler implements IPlatformImportHandler
Constructor and Description |
---|
PRPTImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes) |
Modifier and Type | Method and Description |
---|---|
protected org.pentaho.reporting.libraries.docbundle.DocumentMetaData |
extractMetaData(byte[] bytes)
extract metadata from input bundle
|
void |
importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle)
Import the provided IPlatformImportBundle into the platform.
|
copyFileToRepository, createFile, createFolderJustInTime, getImportSession, getKnownExtensions, getLogger, getMimeTypeMap, getMimeTypes, getParentId, getRepository, getTitle, setDefaultAclHandler, setKnownExtensions, setRepository, updateFile
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getMimeTypes
public PRPTImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes)
public void importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle) throws PlatformImportException
IPlatformImportHandler
importFile
in interface IPlatformImportHandler
importFile
in class RepositoryFileImportFileHandler
PlatformImportException
protected org.pentaho.reporting.libraries.docbundle.DocumentMetaData extractMetaData(byte[] bytes) throws PlatformImportException
bytes
- PlatformImportException
- if we are failed to create metadata from input dataCopyright © 2018 Hitachi Vantara. All rights reserved.