Class SpreadsheetExportConfigurationSpec
- java.lang.Object
-
- com.orchestranetworks.addon.dex.configuration.FileExportConfigurationSpec
-
- com.orchestranetworks.addon.dex.configuration.SpreadsheetExportConfigurationSpec
-
- All Implemented Interfaces:
ConfigurationSpec<EBXTable>,ExportConfigurationSpec<EBXTable>
public final class SpreadsheetExportConfigurationSpec extends FileExportConfigurationSpec
Specifies the configuration used to export data to an Excel file.- Since:
- 2.3.0
-
-
Constructor Summary
Constructors Constructor Description SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, com.orchestranetworks.service.Session session)SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> sourceTableFilters, com.orchestranetworks.service.Session session)SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session)SpreadsheetExportConfigurationSpec(EBXTable sourceTable, TableFilter tableFilter, com.orchestranetworks.service.Session session)SpreadsheetExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseURL()Returns the base URL for fetching a link to a record.SpreadsheetFileFormatgetFileFormat()Returns the Excel file format.ServiceTypegetServiceType()Returns the service type.java.util.Set<com.onwbp.base.text.Severity>getSeveritiesOfValidationMessages()Returns validation message severity levels.java.util.Map<EBXTable,TableFilter>getSourceTableFilters()Returns a map of table filters and anEBXTableinstance as the key parameter.java.util.List<EBXTable>getSourceTables()Returns the list of source tables.SpreadsheetExportTemplategetSpreadsheetTemplate()Returns aSpreadsheetExportTemplateinstance to represent a spreadsheet template.booleanisEnumerationLabelExported()Returnstrueif the exported file will contain an information column with the label of the enumeration.booleanisEnumerationsExported()Returnstrueif the exported file will contain enumerations matching the one in the data model.booleanisForeignKeyLabelExported()Returnstrueif the exported file contains an information column with the label of the foreign key.booleanisForeignKeyPermalinkExported()Returnstrueif the exported file will contain the permalink for the foreign key.booleanisIgnoredFieldExported()Returnstrueif the ignored field is exported as a blank column.booleanisPrimaryKeyLabelExported()Returnstrueif the exported file contains an information column with the label of the primary key.booleanisPrimaryKeyPermalinkExported()Returnstrueif the exported file will contain the permalink for the primary key.booleanisReferenceSheetIncluded()Returnstrueif a reference sheet called 'Reference table mapping' is added at the end of the Excel file.voidsetBaseURL(java.lang.String baseURL)Sets the base URL for fetching a link to a record.voidsetEnumerationLabelExported(boolean enumerationLabelExported)Sets whether the exported file will contain an information column with the label of the enumeration.voidsetEnumerationsExported(boolean enumerationsExported)Sets whether the exported file will contain enumerations matching the one in the data model.voidsetFileFormat(SpreadsheetFileFormat fileFormat)Sets the Excel file format.voidsetForeignKeyLabelExported(boolean foreignKeyLabelExported)Sets whether the exported file contains an information column with the label of the foreign key.voidsetForeignKeyPermalinkExported(boolean foreignKeyPermalinkExported)Sets whether the exported file will contain the permalink for the foreign key.voidsetIgnoredFieldExported(boolean ignoredFieldExported)Sets whether the ignored field is exported as a blank column.voidsetPrimaryKeyLabelExported(boolean primaryKeyLabelExported)Sets whether the exported file contains an information column with the label of the primary key.voidsetPrimaryKeyPermalinkExported(boolean primaryKeyPermalinkExported)Sets whether the exported file will contain the permalink for the primary key.voidsetReferenceSheetIncluded(boolean referenceSheetIncluded)Sets whether a reference sheet called 'Reference table mapping' is added at the end of the Excel file.voidsetSeveritiesOfValidationMessages(java.util.Set<com.onwbp.base.text.Severity> severitiesOfValidationMessages)Sets validation message severity levels.voidsetSpreadsheetTemplate(SpreadsheetExportTemplate spreadsheetTemplate)Sets aSpreadsheetExportTemplateinstance to represent a spreadsheet template.-
Methods inherited from class com.orchestranetworks.addon.dex.configuration.FileExportConfigurationSpec
getCurrentDataset, getCurrentTable, getLocale, getSession, isComputedValueIncluded, isDataFromReferencedTablesExported, isDataReferencingSelectedRecordExported, isHeaderExported, isWriteAccessLockDisabled, setComputedValueIncluded, setDataFromReferencedTablesExported, setDataReferencingSelectedRecordExported, setHeaderExported, setLocale, setWriteAccessLockDisabled
-
-
-
-
Constructor Detail
-
SpreadsheetExportConfigurationSpec
public SpreadsheetExportConfigurationSpec(com.orchestranetworks.service.ServiceContext serviceContext) throws DataExchangeException- Throws:
DataExchangeException
-
SpreadsheetExportConfigurationSpec
public SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.AdaptationTable currentTable, com.orchestranetworks.service.Session session) throws DataExchangeException- Throws:
DataExchangeException
-
SpreadsheetExportConfigurationSpec
public SpreadsheetExportConfigurationSpec(EBXTable sourceTable, TableFilter tableFilter, com.orchestranetworks.service.Session session) throws DataExchangeException
- Throws:
DataExchangeException
-
SpreadsheetExportConfigurationSpec
public SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, com.orchestranetworks.service.Session session) throws DataExchangeException- Throws:
DataExchangeException
-
SpreadsheetExportConfigurationSpec
public SpreadsheetExportConfigurationSpec(com.onwbp.adaptation.Adaptation sourceDataset, java.util.List<EBXTable> sourceTables, java.util.Map<EBXTable,TableFilter> sourceTableFilters, com.orchestranetworks.service.Session session) throws DataExchangeException- Throws:
DataExchangeException
-
-
Method Detail
-
getServiceType
public ServiceType getServiceType()
Returns the service type.
-
isPrimaryKeyLabelExported
public boolean isPrimaryKeyLabelExported()
Returnstrueif the exported file contains an information column with the label of the primary key.
-
setPrimaryKeyLabelExported
public void setPrimaryKeyLabelExported(boolean primaryKeyLabelExported)
Sets whether the exported file contains an information column with the label of the primary key.
-
isForeignKeyLabelExported
public boolean isForeignKeyLabelExported()
Returnstrueif the exported file contains an information column with the label of the foreign key.
-
setForeignKeyLabelExported
public void setForeignKeyLabelExported(boolean foreignKeyLabelExported)
Sets whether the exported file contains an information column with the label of the foreign key.
-
isPrimaryKeyPermalinkExported
public boolean isPrimaryKeyPermalinkExported()
Returnstrueif the exported file will contain the permalink for the primary key. The permalink is only set if the export is executed within aUIService.
-
setPrimaryKeyPermalinkExported
public void setPrimaryKeyPermalinkExported(boolean primaryKeyPermalinkExported)
Sets whether the exported file will contain the permalink for the primary key. The permalink is only set if the export is executed within aUIService.
-
isForeignKeyPermalinkExported
public boolean isForeignKeyPermalinkExported()
Returnstrueif the exported file will contain the permalink for the foreign key. The permalink is only set if the export is executed within aUIService.
-
setForeignKeyPermalinkExported
public void setForeignKeyPermalinkExported(boolean foreignKeyPermalinkExported)
Sets whether the exported file will contain the permalink for the foreign key. The permalink is only set if the export is executed within aUIService.
-
getFileFormat
public SpreadsheetFileFormat getFileFormat()
Returns the Excel file format.
-
setFileFormat
public void setFileFormat(SpreadsheetFileFormat fileFormat)
Sets the Excel file format.
-
isReferenceSheetIncluded
public boolean isReferenceSheetIncluded()
Returnstrueif a reference sheet called 'Reference table mapping' is added at the end of the Excel file. This sheet contains metadata such as the sheet name, the table label and the table path used to detect the mapping between sheets and tables upon import. This option is only activated when exporting multiple tables to an Excel file.
-
setReferenceSheetIncluded
public void setReferenceSheetIncluded(boolean referenceSheetIncluded)
Sets whether a reference sheet called 'Reference table mapping' is added at the end of the Excel file. This sheet contains metadata such as the sheet name, the table label and the table path used to detect the mapping between sheets and tables upon import. This option is only activated when exporting multiple tables to an Excel file.
-
isEnumerationsExported
public boolean isEnumerationsExported()
Returnstrueif the exported file will contain enumerations matching the one in the data model. Warning: this can increase the file size.
-
setEnumerationsExported
public void setEnumerationsExported(boolean enumerationsExported)
Sets whether the exported file will contain enumerations matching the one in the data model. Warning: this can increase the file size.
-
getSpreadsheetTemplate
public SpreadsheetExportTemplate getSpreadsheetTemplate()
Returns aSpreadsheetExportTemplateinstance to represent a spreadsheet template.
-
setSpreadsheetTemplate
public void setSpreadsheetTemplate(SpreadsheetExportTemplate spreadsheetTemplate)
Sets aSpreadsheetExportTemplateinstance to represent a spreadsheet template.
-
getSourceTables
public java.util.List<EBXTable> getSourceTables()
Returns the list of source tables.
-
getSourceTableFilters
public java.util.Map<EBXTable,TableFilter> getSourceTableFilters()
Returns a map of table filters and anEBXTableinstance as the key parameter. Returnsnullwhen importing CSV, Excel and XML.
-
getBaseURL
public java.lang.String getBaseURL()
Returns the base URL for fetching a link to a record.
-
setBaseURL
public void setBaseURL(java.lang.String baseURL)
Sets the base URL for fetching a link to a record.
-
isIgnoredFieldExported
public boolean isIgnoredFieldExported()
Returnstrueif the ignored field is exported as a blank column. Otherwise, the ignored field will not be exported.- Since:
- 2.4.0
-
setIgnoredFieldExported
public void setIgnoredFieldExported(boolean ignoredFieldExported)
Sets whether the ignored field is exported as a blank column.- Since:
- 2.4.0
-
getSeveritiesOfValidationMessages
public java.util.Set<com.onwbp.base.text.Severity> getSeveritiesOfValidationMessages()
Returns validation message severity levels. (Does not supportcom.onwbp.base.text.Severity.FATAL). If the severity of the messages iscom.onwbp.base.text.Severity.INFO, the exported file includes information messages. If the severity of the messages iscom.onwbp.base.text.Severity.WARNING, the exported file includes warning messages. If the severity of the messages iscom.onwbp.base.text.Severity.ERROR, the exported file includes error messages.- Since:
- 2.5.0
-
setSeveritiesOfValidationMessages
public void setSeveritiesOfValidationMessages(java.util.Set<com.onwbp.base.text.Severity> severitiesOfValidationMessages)
Sets validation message severity levels. (Do not supportcom.onwbp.base.text.Severity.FATAL). If the severity of the messages iscom.onwbp.base.text.Severity.INFO, the exported file includes information messages. If the severity of the messages iscom.onwbp.base.text.Severity.WARNING, the exported file includes warning messages. If the severity of the messages iscom.onwbp.base.text.Severity.ERROR, the exported file includes error messages.- Since:
- 2.5.0
-
isEnumerationLabelExported
public boolean isEnumerationLabelExported()
Returnstrueif the exported file will contain an information column with the label of the enumeration.- Since:
- 2.6.3
-
setEnumerationLabelExported
public void setEnumerationLabelExported(boolean enumerationLabelExported)
Sets whether the exported file will contain an information column with the label of the enumeration.- Since:
- 2.6.3
-
-