Package com.axelor.data
Interface Importer
-
- All Known Implementing Classes:
CSVImporter
,XMLImporter
public interface Importer
TheImporter
interface to run data import.
-
-
Field Summary
Fields Modifier and Type Field Description static DataAdapter[]
defaultAdapters
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addListener(Listener listener)
Add a data import event listener.void
clearListener()
Clear listeners.void
run()
Run the data import task.void
run(ImportTask task)
Run the specified import task.void
setContext(Map<String,Object> context)
Set global context.
-
-
-
Field Detail
-
defaultAdapters
static final DataAdapter[] defaultAdapters
-
-
Method Detail
-
setContext
void setContext(Map<String,Object> context)
Set global context.- Parameters:
context
- the global context
-
addListener
void addListener(Listener listener)
Add a data import event listener.- Parameters:
listener
- the listener
-
clearListener
void clearListener()
Clear listeners.
-
run
void run()
Run the data import task.
-
run
void run(ImportTask task)
Run the specified import task.- Parameters:
task
- the task to run
-
-