Interface ExcelExportService

All Known Implementing Classes:
DefaultExcelExportService

public interface ExcelExportService
Service for exporting data to excel workbook
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.poi.ss.usermodel.Workbook
    exportData(String typeCode, List<SelectedAttribute> selectedAttributes)
    Exports data to excel workbook for given type
    org.apache.poi.ss.usermodel.Workbook
    exportData(List<ItemModel> selectedItems, List<SelectedAttribute> selectedAttributes)
    Exports data to excel workbook
    org.apache.poi.ss.usermodel.Workbook
    Exports a template excel workbook.
  • Method Details

    • exportTemplate

      org.apache.poi.ss.usermodel.Workbook exportTemplate(String typeCode)
      Exports a template excel workbook. Its purpose is to provide an empty excel file that a user can fill with data, and then re-import. The template contains sheets for the typeCode and all of it's non-abstract sub-types, with all the metadata (like the available attributes).
      Parameters:
      typeCode - the type for which the template workbook will be created
      Returns:
      the template workbook
    • exportData

      org.apache.poi.ss.usermodel.Workbook exportData(List<ItemModel> selectedItems, List<SelectedAttribute> selectedAttributes)
      Exports data to excel workbook
      Parameters:
      selectedItems - list of items which will be exported
      selectedAttributes - list of selected attributes which have metadata necessary for reimporting the data
      Returns:
      sheet
    • exportData

      org.apache.poi.ss.usermodel.Workbook exportData(String typeCode, List<SelectedAttribute> selectedAttributes)
      Exports data to excel workbook for given type
      Parameters:
      typeCode - type to export
      selectedAttributes - list of selected attributes which have metadata necessary for reimporting the data
      Returns:
      sheet