Package com.orchestranetworks.addon.dex
Class SpreadsheetImportDataExchangeHelperContext
java.lang.Object
com.orchestranetworks.addon.dex.SpreadsheetImportDataExchangeHelperContext
- All Implemented Interfaces:
DataExchangeHelperContext
public final class SpreadsheetImportDataExchangeHelperContext
extends Object
implements DataExchangeHelperContext
Provides the context to get the
DataExchangeSpec
for importing Excel from the configuration declared in the EBX Data Exchange Add-on dataset.- Since:
- 2.7.0
-
Constructor Summary
ConstructorsConstructorDescriptionSpreadsheetImportDataExchangeHelperContext
(String preferenceName, com.onwbp.adaptation.Adaptation currentDataset, com.orchestranetworks.service.Session session) Creates a newSpreadsheetImportDataExchangeHelperContext
using the preference name when importing multiple tables.SpreadsheetImportDataExchangeHelperContext
(String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) Creates a newSpreadsheetImportDataExchangeHelperContext
using the preference name when importing a single table. -
Method Summary
Modifier and TypeMethodDescriptioncom.onwbp.adaptation.Adaptation
Returns the current dataset.com.onwbp.adaptation.AdaptationTable
Returns the current table.Returns the imported file.Returns the specified preference name declared in the Namefield of the Application interface preference table in the EBX Data Exchange Add-on dataset.Returns the specified service type.com.orchestranetworks.service.Session
Returns the current session.void
setImportedFile
(File importedFile) Sets an imported file to the specified value.
-
Constructor Details
-
SpreadsheetImportDataExchangeHelperContext
public SpreadsheetImportDataExchangeHelperContext(String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) Creates a newSpreadsheetImportDataExchangeHelperContext
using the preference name when importing a single table.- Parameters:
preferenceName
- the preference name is declared in Name field of the Application interface preference table in the EBX Data Exchange Add-on dataset.currentTable
- the current table.session
- the current session.
-
SpreadsheetImportDataExchangeHelperContext
public SpreadsheetImportDataExchangeHelperContext(String preferenceName, com.onwbp.adaptation.Adaptation currentDataset, com.orchestranetworks.service.Session session) Creates a newSpreadsheetImportDataExchangeHelperContext
using the preference name when importing multiple tables.- Parameters:
preferenceName
- the preference name is declared in Namefield of the Application interface preference table in the EBX Data Exchange Add-on dataset.currentDataset
- the current dataset.session
- the current session.
-
-
Method Details
-
getCurrentDataset
public com.onwbp.adaptation.Adaptation getCurrentDataset()Returns the current dataset.- Specified by:
getCurrentDataset
in interfaceDataExchangeHelperContext
-
getCurrentTable
public com.onwbp.adaptation.AdaptationTable getCurrentTable()Returns the current table.- Specified by:
getCurrentTable
in interfaceDataExchangeHelperContext
-
getSession
public com.orchestranetworks.service.Session getSession()Returns the current session.- Specified by:
getSession
in interfaceDataExchangeHelperContext
-
getServiceType
Returns the specified service type.- Specified by:
getServiceType
in interfaceDataExchangeHelperContext
-
getPreferenceName
Returns the specified preference name declared in the Namefield of the Application interface preference table in the EBX Data Exchange Add-on dataset. -
getImportedFile
Returns the imported file. -
setImportedFile
Sets an imported file to the specified value.
-