Class MetadataImportHandler
- java.lang.Object
-
- org.pentaho.platform.plugin.services.importer.MetadataImportHandler
-
- All Implemented Interfaces:
IPlatformImportHandler
public class MetadataImportHandler extends Object implements IPlatformImportHandler
Class Description- Author:
- David M. Kincade, nbaker
-
-
Constructor Summary
Constructors Constructor Description MetadataImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes, IPentahoMetadataDomainRepositoryImporter metadataImporter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<org.pentaho.platform.api.mimetype.IMimeType>
getMimeTypes()
void
importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle file)
Import the provided IPlatformImportBundle into the platform.protected String
processMetadataFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle)
Processes the file as a metadata file and returns the domain name.
-
-
-
Constructor Detail
-
MetadataImportHandler
public MetadataImportHandler(List<org.pentaho.platform.api.mimetype.IMimeType> mimeTypes, IPentahoMetadataDomainRepositoryImporter metadataImporter)
-
-
Method Detail
-
importFile
public void importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle file) throws PlatformImportException
Description copied from interface:IPlatformImportHandler
Import the provided IPlatformImportBundle into the platform.- Specified by:
importFile
in interfaceIPlatformImportHandler
- Throws:
PlatformImportException
-
processMetadataFile
protected String processMetadataFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle) throws PlatformImportException
Processes the file as a metadata file and returns the domain name. It will import the file into the Pentaho Metadata Domain Repository.- Parameters:
bundle
-- Returns:
- Throws:
PlatformImportException
-
getMimeTypes
public List<org.pentaho.platform.api.mimetype.IMimeType> getMimeTypes()
- Specified by:
getMimeTypes
in interfaceIPlatformImportHandler
-
-