public class ResourceUtil extends Object
| Constructor and Description |
|---|
ResourceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getExplanation(String zipFilename,
String launchFile,
ResourceExportInterface resourceExportInterface) |
static TopLevelResource |
serializeResourceExportInterface(String zipFilename,
ResourceExportInterface resourceExportInterface,
VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore)
Serializes the referenced resource export interface (Job, Transformation, Mapping, Step, Job Entry, etc) to a ZIP
file.
|
static TopLevelResource |
serializeResourceExportInterface(String zipFilename,
ResourceExportInterface resourceExportInterface,
VariableSpace space,
Repository repository,
org.pentaho.metastore.api.IMetaStore metaStore,
String injectXML,
String injectFilename)
Serializes the referenced resource export interface (Job, Transformation, Mapping, Step, Job Entry, etc) to a ZIP
file.
|
public static final TopLevelResource serializeResourceExportInterface(String zipFilename, ResourceExportInterface resourceExportInterface, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws KettleException
zipFilename - The ZIP file to put the content inresourceExportInterface - the interface to serializespace - the space to use for variable replacementrepository - the repository to load objects from (or null if not used)metaStore - the metaStore to load fromKettleException - in case anything goes wrong during serializationpublic static final TopLevelResource serializeResourceExportInterface(String zipFilename, ResourceExportInterface resourceExportInterface, VariableSpace space, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore, String injectXML, String injectFilename) throws KettleException
zipFilename - The ZIP file to put the content inresourceExportInterface - the interface to serializespace - the space to use for variable replacementrepository - the repository to load objects from (or null if not used)injectXML - The XML to inject into the resulting ZIP archive (optional, can be null)injectFilename - The name of the file for the XML to inject in the ZIP archive (optional, can be null)KettleException - in case anything goes wrong during serializationpublic static String getExplanation(String zipFilename, String launchFile, ResourceExportInterface resourceExportInterface)
Copyright © 2018 Hitachi Vantara. All rights reserved.