Class RemoveSheetsDecorator
java.lang.Object
com.hybris.backoffice.excel.exporting.RemoveSheetsDecorator
- All Implemented Interfaces:
ExcelExportWorkbookDecorator,org.springframework.core.Ordered
Decorator which removes given utility sheets before the workbook is downloaded by user. This decorator has almost the
lowest precedence, therefore sheets are removed just before sending workbook into response.
-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecorate(ExcelExportResult excelExportResult) Decorates exportedWorkbookobject.intgetOrder()voidsetSheetsToRemove(Collection<ExcelTemplateConstants.UtilitySheet> sheetsToRemove)
-
Constructor Details
-
RemoveSheetsDecorator
public RemoveSheetsDecorator()
-
-
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
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setSheetsToRemove
-