public class PentahoPlatformImporter extends Object implements IPlatformImporter
Constructor and Description |
---|
PentahoPlatformImporter(List<IPlatformImportHandler> handlerList,
org.pentaho.platform.api.repository2.unified.IRepositoryContentConverterHandler repositoryContentConverterHandler) |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(IPlatformImportHandler platformImportHandler)
Add a new IPlatformImportHandler to process the MimeTypes given by that import handler.
|
void |
addHandler(String mimeType,
IPlatformImportHandler handler)
To be consumed mainly by platform plugins who want to treat importing artifacts different.
|
static String |
checkAndSanitize(String in)
Performs one-way conversion on incoming String to produce a syntactically valid JCR path (section 4.6 Path Syntax).
|
static String |
computeBundlePath(String bundlePath) |
IPlatformImportHandler |
getDefaultHandler() |
Map<String,IPlatformImportHandler> |
getHandlers()
Returns the platform importer's map of registered handlers
|
IRepositoryImportLogger |
getRepositoryImportLogger() |
void |
importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle file)
this is the main method that uses the mime time (from Spring) to determine which handler to invoke.
|
void |
setDefaultHandler(IPlatformImportHandler defaultHandler) |
void |
setRepositoryImportLogger(IRepositoryImportLogger repositoryImportLogger) |
public PentahoPlatformImporter(List<IPlatformImportHandler> handlerList, org.pentaho.platform.api.repository2.unified.IRepositoryContentConverterHandler repositoryContentConverterHandler)
public IPlatformImportHandler getDefaultHandler()
public void setDefaultHandler(IPlatformImportHandler defaultHandler)
public void addHandler(String mimeType, IPlatformImportHandler handler)
public void addHandler(IPlatformImportHandler platformImportHandler)
IPlatformImporter
addHandler
in interface IPlatformImporter
public void importFile(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle file) throws PlatformImportException
importFile
in interface IPlatformImporter
PlatformImportException
public static String checkAndSanitize(String in)
public IRepositoryImportLogger getRepositoryImportLogger()
getRepositoryImportLogger
in interface IPlatformImporter
public void setRepositoryImportLogger(IRepositoryImportLogger repositoryImportLogger)
public Map<String,IPlatformImportHandler> getHandlers()
IPlatformImporter
getHandlers
in interface IPlatformImporter
Copyright © 2018 Hitachi Vantara. All rights reserved.