|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.di.repository.RepositoryImporter
public class RepositoryImporter
Constructor Summary | |
---|---|
RepositoryImporter(Repository repository)
|
|
RepositoryImporter(Repository repository,
ImportRules importRules,
List<String> limitDirs)
|
Method Summary | |
---|---|
void |
addLog(String line)
|
boolean |
askContinueOnErrorQuestion(String title,
String message)
|
void |
beginTask(String message,
int nrWorks)
|
void |
done()
|
void |
fatalXmlErrorEncountered(SAXParseException e)
|
List<Exception> |
getExceptions()
Returns a list of exceptions that the implementation may maintain. |
ImportRules |
getImportRules()
|
String |
getJobDirOverride()
|
String |
getTransDirOverride()
|
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. |
boolean |
isAskingOverwriteConfirmation()
|
boolean |
isCanceled()
|
boolean |
jobElementRead(String xml,
RepositoryImportFeedbackInterface feedback)
|
boolean |
jobOverwritePrompt(JobMeta jobMeta)
|
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 |
setLabel(String labelText)
|
void |
setTaskName(String taskName)
|
void |
setTransDirOverride(String transDirOverride)
Overrides repository directory for all imported transformations. |
void |
showError(String title,
String message,
Exception e)
|
void |
subTask(String message)
|
boolean |
transformationElementRead(String xml,
RepositoryImportFeedbackInterface feedback)
|
boolean |
transOverwritePrompt(TransMeta transMeta)
|
void |
updateDisplay()
|
static void |
validateImportedElement(ImportRules importRules,
Object subject)
Validates the repository element that is about to get imported against the list of import rules. |
void |
worked(int nrWorks)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryImporter(Repository repository)
public RepositoryImporter(Repository repository, ImportRules importRules, List<String> limitDirs)
Method Detail |
---|
public void importAll(RepositoryImportFeedbackInterface feedback, String fileDirectory, String[] filenames, RepositoryDirectoryInterface baseDirectory, boolean overwrite, boolean continueOnError, String versionComment)
IRepositoryImporter
importAll
in interface IRepositoryImporter
feedback
- Required to provide feedback to the user.fileDirectory
- Base directory to load files (named filenames
) fromfilenames
- 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.public static void validateImportedElement(ImportRules importRules, Object subject) throws KettleException
the
- import rules to validate against.subject
-
KettleException
public void addLog(String line)
addLog
in interface RepositoryImportFeedbackInterface
public void setLabel(String labelText)
setLabel
in interface RepositoryImportFeedbackInterface
public boolean transOverwritePrompt(TransMeta transMeta)
transOverwritePrompt
in interface RepositoryImportFeedbackInterface
public boolean jobOverwritePrompt(JobMeta jobMeta)
jobOverwritePrompt
in interface RepositoryImportFeedbackInterface
public void updateDisplay()
updateDisplay
in interface RepositoryImportFeedbackInterface
public void showError(String title, String message, Exception e)
showError
in interface RepositoryImportFeedbackInterface
public boolean transformationElementRead(String xml, RepositoryImportFeedbackInterface feedback)
transformationElementRead
in interface RepositoryElementReadListener
public boolean jobElementRead(String xml, RepositoryImportFeedbackInterface feedback)
jobElementRead
in interface RepositoryElementReadListener
public void fatalXmlErrorEncountered(SAXParseException e)
fatalXmlErrorEncountered
in interface RepositoryElementReadListener
public boolean askContinueOnErrorQuestion(String title, String message)
askContinueOnErrorQuestion
in interface RepositoryImportFeedbackInterface
public void beginTask(String message, int nrWorks)
beginTask
in interface ProgressMonitorListener
public void done()
done
in interface ProgressMonitorListener
public boolean isCanceled()
isCanceled
in interface ProgressMonitorListener
public void setTaskName(String taskName)
setTaskName
in interface ProgressMonitorListener
public void subTask(String message)
subTask
in interface ProgressMonitorListener
public void worked(int nrWorks)
worked
in interface ProgressMonitorListener
public String getTransDirOverride()
public void setTransDirOverride(String transDirOverride)
IRepositoryImporter
setTransDirOverride
in interface IRepositoryImporter
public String getJobDirOverride()
public void setJobDirOverride(String jobDirOverride)
IRepositoryImporter
setJobDirOverride
in interface IRepositoryImporter
public void setImportRules(ImportRules importRules)
IRepositoryImporter
setImportRules
in interface IRepositoryImporter
importRules
- The rules to use during import into the repositorypublic ImportRules getImportRules()
public boolean isAskingOverwriteConfirmation()
isAskingOverwriteConfirmation
in interface RepositoryImportFeedbackInterface
public List<Exception> getExceptions()
IRepositoryImporter
getExceptions
in interface IRepositoryImporter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |