Package com.axelor.data
Interface Importer
-
- All Known Implementing Classes:
CSVImporter,XMLImporter
public interface ImporterTheImporterinterface 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 voidaddListener(Listener listener)Add a data import event listener.voidclearListener()Clear listeners.voidrun()Run the data import task.voidrun(ImportTask task)Run the specified import task.voidsetContext(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
-
-