Package org.pentaho.di.resource
Interface ResourceExportInterface
public interface ResourceExportInterface
The classes implementing this interface allow their used resources to be exported.
One of the interfaces must be defined. Only the non-deprecated one will be called by kettle.
- Author:
- Matt
-
Method Summary
Modifier and TypeMethodDescriptiondefault StringexportResources(org.pentaho.di.core.bowl.Bowl executionBowl, org.pentaho.di.core.bowl.Bowl globalManagementBowl, org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Exports the object to a flat-file system, adding content with filename keys to a set of definitions.default StringexportResources(org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) Deprecated.use the version with the Bowl
-
Method Details
-
exportResources
@Deprecated default String exportResources(org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleExceptionDeprecated.use the version with the BowlExports the object to a flat-file system, adding content with filename keys to a set of definitions. The supplied resource naming interface allows the object to name appropriately without worrying about those parts of the implementation specific details.- Parameters:
space- The variable space to resolve (environment) variables with.definitions- The map containing the filenames and contentnamingInterface- The resource naming interface allows the object to name appropriatelyrepository- the repository object to load frommetaStore- the central metastore to load non-kettle specific metadata from- Returns:
- The filename for this object. (also contained in the definitions map)
- Throws:
org.pentaho.di.core.exception.KettleException- in case something goes wrong during the export
-
exportResources
default String exportResources(org.pentaho.di.core.bowl.Bowl executionBowl, org.pentaho.di.core.bowl.Bowl globalManagementBowl, org.pentaho.di.core.variables.VariableSpace space, Map<String, ResourceDefinition> definitions, ResourceNamingInterface namingInterface, Repository repository, org.pentaho.metastore.api.IMetaStore metaStore) throws org.pentaho.di.core.exception.KettleExceptionExports the object to a flat-file system, adding content with filename keys to a set of definitions. The supplied resource naming interface allows the object to name appropriately without worrying about those parts of the implementation specific details.- Parameters:
executionBowl- For file accessglobalManagementBowl- if needed for access to the current "global" (System or Repository) level configspace- The variable space to resolve (environment) variables with.definitions- The map containing the filenames and contentnamingInterface- The resource naming interface allows the object to name appropriatelyrepository- the repository object to load frommetaStore- the central metastore to load non-kettle specific metadata from- Returns:
- The filename for this object. (also contained in the definitions map)
- Throws:
org.pentaho.di.core.exception.KettleException- in case something goes wrong during the export
-