Interface ExcelExportService
-
- All Known Implementing Classes:
DefaultExcelExportService
public interface ExcelExportServiceService for exporting data to excel workbook
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.apache.poi.ss.usermodel.WorkbookexportData(java.lang.String typeCode, java.util.List<SelectedAttribute> selectedAttributes)Exports data to excel workbook for given typeorg.apache.poi.ss.usermodel.WorkbookexportData(java.util.List<ItemModel> selectedItems, java.util.List<SelectedAttribute> selectedAttributes)Exports data to excel workbookorg.apache.poi.ss.usermodel.WorkbookexportTemplate(java.lang.String typeCode)Exports a template excel workbook.
-
-
-
Method Detail
-
exportTemplate
org.apache.poi.ss.usermodel.Workbook exportTemplate(java.lang.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 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(java.util.List<ItemModel> selectedItems, java.util.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(java.lang.String typeCode, java.util.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
-
-