Package org.pentaho.di.repository
Interface IRepositoryImporter
-
- All Superinterfaces:
org.pentaho.di.core.ProgressMonitorListener,RepositoryElementReadListener,RepositoryImportFeedbackInterface
- All Known Implementing Classes:
RepositoryImporter
public interface IRepositoryImporter extends org.pentaho.di.core.ProgressMonitorListener, RepositoryImportFeedbackInterface, RepositoryElementReadListener
Handles importing a repository.- Author:
- jganoff
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description List<Exception>getExceptions()Returns a list of exceptions that the implementation may maintain.voidimportAll(RepositoryImportFeedbackInterface feedback, String fileDirectory, String[] filenames, org.pentaho.di.repository.RepositoryDirectoryInterface baseDirectory, boolean overwrite, boolean continueOnError, String versionComment)Import objects from an XML document to a repository.voidsetImportRules(ImportRules importRules)Set the list of rules that need to be applied to every imported object.voidsetJobDirOverride(String jobDirOverride)Overrides repository directory for all imported jobs.voidsetTransDirOverride(String transDirOverride)Overrides repository directory for all imported transformations.-
Methods inherited from interface org.pentaho.di.core.ProgressMonitorListener
beginTask, done, isCanceled, setTaskName, subTask, worked
-
Methods inherited from interface org.pentaho.di.repository.RepositoryElementReadListener
fatalXmlErrorEncountered, jobElementRead, transformationElementRead
-
Methods inherited from interface org.pentaho.di.repository.RepositoryImportFeedbackInterface
addLog, askContinueOnErrorQuestion, isAskingOverwriteConfirmation, jobOverwritePrompt, setLabel, showError, transOverwritePrompt, updateDisplay
-
-
-
-
Method Detail
-
importAll
void importAll(RepositoryImportFeedbackInterface feedback, String fileDirectory, String[] filenames, org.pentaho.di.repository.RepositoryDirectoryInterface baseDirectory, boolean overwrite, boolean continueOnError, String versionComment)
Import objects from an XML document to a repository.- Parameters:
feedback- Required to provide feedback to the user.fileDirectory- Base directory to load files (namedfilenames) fromfilenames- Names of files found infileDirectoryto be imported.baseDirectory- Base directory to load objects into.overwrite- Should objects in the repository be overwritten with ones we're importing?continueOnError- Should the import continue if there is an error importing an object?versionComment- Comment to use when saving imported objects.
-
setImportRules
void setImportRules(ImportRules importRules)
Set the list of rules that need to be applied to every imported object.- Parameters:
importRules- The rules to use during import into the repository
-
setTransDirOverride
void setTransDirOverride(String transDirOverride)
Overrides repository directory for all imported transformations.
-
setJobDirOverride
void setJobDirOverride(String jobDirOverride)
Overrides repository directory for all imported jobs.
-
-