public class ImportExport extends Object
Constructor and Description |
---|
ImportExport() |
Modifier and Type | Method and Description |
---|---|
static void |
exportDataset(File file,
String datasetId)
Exports the given dataset to a zip file.
|
static void |
exportExecution(File file,
String executionId)
Exports the given execution to a zip file.
|
static void |
exportLogfile(File file,
String logfileId)
Exports the given logfile to a textfile.
|
static void |
exportStep(File file,
String stepId,
String executionId)
Exports the given step to a zip file.
|
static void |
exportTool(File file,
String toolId)
Exports the given tool to a zip file.
|
static void |
exportWorkflow(File file,
String workflowId)
Exports the given workflow to a zip file.
|
static Dataset |
importDataset(File file)
Imports the dataset from the zipfile.
|
static WorkflowTool |
importTool(File file)
Imports the tool from the zipfile.
|
static Workflow |
importWorkflow(File file)
Imports the workflow from the zipfile.
|
public static void exportWorkflow(File file, String workflowId) throws Exception
file
- the zipfile where the workflow will be saved, this file will
be overwritten.workflowId
- the id of the workflow to export.Exception
- an exception is thrown if the workflow could not be saved.public static Workflow importWorkflow(File file) throws Exception
file
- the zipfile where the workflow is saved.Exception
- an exception is thrown if the workflow could not be loaded.public static void exportTool(File file, String toolId) throws Exception
file
- the zipfile where the tool will be saved, this file will
be overwritten.toolId
- the id of the tool to export.Exception
- an exception is thrown if the tool could not be saved.public static WorkflowTool importTool(File file) throws Exception
file
- the zipfile where the tool is savedException
- an exception is thrown if the tool could not be loaded.public static void exportExecution(File file, String executionId) throws Exception
file
- the zipfile where the execution will be saved, this file will
be overwritten.executionId
- the id of the exection to export.Exception
- an exception is thrown if the execution could not be saved.public static void exportStep(File file, String stepId, String executionId) throws Exception
file
- the zipfile where the step will be saved, this file will
be overwritten.stepId
- the id of the step to export.executionId
- the id of the exection to find the data to export.Exception
- an exception is thrown if the step could not be saved.public static void exportDataset(File file, String datasetId) throws Exception
file
- the zipfile where the dataset will be saved, this file will
be overwritten.datasetId
- the id of the dataset to export.Exception
- an exception is thrown if the dataset could not be saved.public static Dataset importDataset(File file) throws Exception
file
- the zipfile where the dataset (json) will be saved, this file
will be overwritten.Exception
- an exception is thrown if the dataset could not be saved.public static void exportLogfile(File file, String logfileId) throws Exception
file
- the textfile where the log will be saved, this file will
be overwritten.logfileId
- the id of the workflow to export.Exception
- an exception is thrown if the logfile could not be saved.Copyright © 2017. All rights reserved.