Interface ExcelExportService
- All Known Implementing Classes:
DefaultExcelExportService
public interface ExcelExportService
Service for exporting data to excel workbook
-
Method Summary
Modifier and TypeMethodDescriptionorg.apache.poi.ss.usermodel.WorkbookexportData(String typeCode, List<SelectedAttribute> selectedAttributes) Exports data to excel workbook for given typeorg.apache.poi.ss.usermodel.WorkbookexportData(List<ItemModel> selectedItems, List<SelectedAttribute> selectedAttributes) Exports data to excel workbookorg.apache.poi.ss.usermodel.WorkbookexportTemplate(String typeCode) Exports a template excel workbook.
-
Method Details
-
exportTemplate
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 thetypeCodeand 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 exportedselectedAttributes- 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 exportselectedAttributes- list of selected attributes which have metadata necessary for reimporting the data- Returns:
- sheet
-