org.pentaho.di.repository
Interface IRepositoryImporter

All Superinterfaces:
ProgressMonitorListener, RepositoryElementReadListener, RepositoryImportFeedbackInterface
All Known Implementing Classes:
RepositoryImporter

public interface IRepositoryImporter
extends ProgressMonitorListener, RepositoryImportFeedbackInterface, RepositoryElementReadListener

Handles importing a repository.

Author:
jganoff

Method Summary
 List<Exception> getExceptions()
          Returns a list of exceptions that the implementation may maintain.
 void importAll(RepositoryImportFeedbackInterface feedback, String fileDirectory, String[] filenames, RepositoryDirectoryInterface baseDirectory, boolean overwrite, boolean continueOnError, String versionComment)
          Import objects from an XML document to a repository.
 void setImportRules(ImportRules importRules)
          Set the list of rules that need to be applied to every imported object.
 void setJobDirOverride(String jobDirOverride)
          Overrides repository directory for all imported jobs.
 void setTransDirOverride(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.RepositoryImportFeedbackInterface
addLog, askContinueOnErrorQuestion, isAskingOverwriteConfirmation, jobOverwritePrompt, setLabel, showError, transOverwritePrompt, updateDisplay
 
Methods inherited from interface org.pentaho.di.repository.RepositoryElementReadListener
fatalXmlErrorEncountered, jobElementRead, transformationElementRead
 

Method Detail

importAll

void importAll(RepositoryImportFeedbackInterface feedback,
               String fileDirectory,
               String[] filenames,
               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 (named filenames) from
filenames - Names of files found in fileDirectory to 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.


getExceptions

List<Exception> getExceptions()
Returns a list of exceptions that the implementation may maintain.

Returns: