Class HideUtilitySheetsDecorator
java.lang.Object
com.hybris.backoffice.excel.exporting.HideUtilitySheetsDecorator
- All Implemented Interfaces:
ExcelExportWorkbookDecorator,org.springframework.core.Ordered
Hides
ExcelTemplateConstants.UtilitySheets passed to decorator using setUtilitySheets(Collection).
The hidden level can be configured using "backoffice.excel.utility.sheets.hidden" - passing true won't allow to unhide hidden
sheet of excel file.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivateFirstNonUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook) voiddecorate(ExcelExportResult excelExportResult) Decorates exportedWorkbookobject.intgetOrder()protected org.apache.poi.ss.usermodel.SheetVisibilityprotected voidhideUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook, String sheetName) voidsetUtilitySheets(Collection<ExcelTemplateConstants.UtilitySheet> utilitySheets)
-
Constructor Details
-
HideUtilitySheetsDecorator
public HideUtilitySheetsDecorator()
-
-
Method Details
-
decorate
Description copied from interface:ExcelExportWorkbookDecoratorDecorates exportedWorkbookobject.- Specified by:
decoratein interfaceExcelExportWorkbookDecorator- Parameters:
excelExportResult- - export result which contains exported workbook, list of selected items, list of selected attributes and list of additional attributes
-
hideUtilitySheet
-
getUtilitySheetHiddenLevel
protected org.apache.poi.ss.usermodel.SheetVisibility getUtilitySheetHiddenLevel() -
activateFirstNonUtilitySheet
protected void activateFirstNonUtilitySheet(org.apache.poi.ss.usermodel.Workbook workbook) -
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setUtilitySheets
-