Class SpreadsheetExportConfigurationSpec

    • Method Detail

      • getServiceType

        public ServiceType getServiceType()
        Returns the service type.
      • isPrimaryKeyLabelExported

        public boolean isPrimaryKeyLabelExported()
        Returns true if 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()
        Returns true if 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()
        Returns true if the exported file will contain the permalink for the primary key. The permalink is only set if the export is executed within a UIService.
      • 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 a UIService.
      • isForeignKeyPermalinkExported

        public boolean isForeignKeyPermalinkExported()
        Returns true if the exported file will contain the permalink for the foreign key. The permalink is only set if the export is executed within a UIService.
      • 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 a UIService.
      • setFileFormat

        public void setFileFormat​(SpreadsheetFileFormat fileFormat)
        Sets the Excel file format.
      • isReferenceSheetIncluded

        public boolean isReferenceSheetIncluded()
        Returns true if 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()
        Returns true if 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.
      • 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 an EBXTable instance as the key parameter. Returns null when 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()
        Returns true if 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 support com.onwbp.base.text.Severity.FATAL). If the severity of the messages is com.onwbp.base.text.Severity.INFO, the exported file includes information messages. If the severity of the messages is com.onwbp.base.text.Severity.WARNING, the exported file includes warning messages. If the severity of the messages is com.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 support com.onwbp.base.text.Severity.FATAL). If the severity of the messages is com.onwbp.base.text.Severity.INFO, the exported file includes information messages. If the severity of the messages is com.onwbp.base.text.Severity.WARNING, the exported file includes warning messages. If the severity of the messages is com.onwbp.base.text.Severity.ERROR, the exported file includes error messages.
        Since:
        2.5.0
      • isEnumerationLabelExported

        public boolean isEnumerationLabelExported()
        Returns true if 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