Class PRPTImportHandler
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importer.RepositoryFileImportFileHandler
-
- org.pentaho.platform.plugin.services.importer.PRPTImportHandler
-
- All Implemented Interfaces:
IPlatformImportHandler
public class PRPTImportHandler extends RepositoryFileImportFileHandler implements IPlatformImportHandler
This is a special handler that will extract the title and description from the meta.xml - uses the parent class s to do the rest of the lifting. (changes to importexport.xml application/prpt) to use this class- Author:
- tband Apr 2013 [BIServer 5499]
-
-
Constructor Summary
Constructors Constructor Description PRPTImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected org.pentaho.reporting.libraries.docbundle.DocumentMetaData
extractMetaData(byte[] bytes)
extract metadata from input bundlevoid
importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle)
Import the provided IPlatformImportBundle into the platform.-
Methods inherited from class org.pentaho.platform.plugin.services.importer.RepositoryFileImportFileHandler
copyFileToRepository, createFile, createFolderJustInTime, getImportSession, getKnownExtensions, getLogger, getMimeTypeMap, getMimeTypes, getParentId, getRepository, getTitle, setDefaultAclHandler, setKnownExtensions, setRepository, updateFile
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.platform.plugin.services.importer.IPlatformImportHandler
getMimeTypes
-
-
-
-
Constructor Detail
-
PRPTImportHandler
public PRPTImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes)
-
-
Method Detail
-
importFile
public void importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle) throws PlatformImportException
Description copied from interface:IPlatformImportHandler
Import the provided IPlatformImportBundle into the platform.- Specified by:
importFile
in interfaceIPlatformImportHandler
- Overrides:
importFile
in classRepositoryFileImportFileHandler
- Throws:
PlatformImportException
-
extractMetaData
protected org.pentaho.reporting.libraries.docbundle.DocumentMetaData extractMetaData(byte[] bytes) throws PlatformImportException
extract metadata from input bundle- Parameters:
bytes
-- Returns:
- Throws:
PlatformImportException
- if we are failed to create metadata from input data
-
-