Package com.orchestranetworks.addon.dex
Class CSVImportDataExchangeHelperContext
- java.lang.Object
-
- com.orchestranetworks.addon.dex.CSVImportDataExchangeHelperContext
-
- All Implemented Interfaces:
DataExchangeHelperContext
public final class CSVImportDataExchangeHelperContext extends java.lang.Object implements DataExchangeHelperContext
Provides the context to get theDataExchangeSpec
for importing CSV from the configuration declared in the {addon.label} dataset.- Since:
- 2.7.0
-
-
Constructor Summary
Constructors Constructor Description CSVImportDataExchangeHelperContext(java.lang.String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session)
Creates a newCSVImportDataExchangeHelperContext
using the preference name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.onwbp.adaptation.Adaptation
getCurrentDataset()
Returns the current dataset.com.onwbp.adaptation.AdaptationTable
getCurrentTable()
Returns the current table.java.io.File
getImportedFile()
Returns the imported file.java.lang.String
getPreferenceName()
Returns the specified preference name declared in Namefield of the Application interface preference table in the {addon.label} dataset.ServiceType
getServiceType()
Returns the specified service type.com.orchestranetworks.service.Session
getSession()
Returns the current session.void
setImportedFile(java.io.File importedFile)
Sets an imported file to the specified value.
-
-
-
Constructor Detail
-
CSVImportDataExchangeHelperContext
public CSVImportDataExchangeHelperContext(java.lang.String preferenceName, com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session)
Creates a newCSVImportDataExchangeHelperContext
using the preference name.- Parameters:
preferenceName
- the preference name is declared in Name field of the Application interface preference table in the {addon.label} dataset.currentTable
- the current table.session
- the current session.
-
-
Method Detail
-
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
public ServiceType getServiceType()
Returns the specified service type.- Specified by:
getServiceType
in interfaceDataExchangeHelperContext
-
getPreferenceName
public java.lang.String getPreferenceName()
Returns the specified preference name declared in Namefield of the Application interface preference table in the {addon.label} dataset.
-
getImportedFile
public java.io.File getImportedFile()
Returns the imported file.
-
setImportedFile
public void setImportedFile(java.io.File importedFile)
Sets an imported file to the specified value.
-
-