Class DefaultExcelSupercategorySelectionDecorator
java.lang.Object
com.hybris.backoffice.excel.exporting.DefaultExcelSupercategorySelectionDecorator
- All Implemented Interfaces:
ExcelExportParamsDecorator,org.springframework.core.Ordered
public class DefaultExcelSupercategorySelectionDecorator
extends Object
implements ExcelExportParamsDecorator
ExcelExportParamsDecorator that appends 'supercategories' attribute selection.-
Field Summary
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandecorate(ExcelExportParams excelExportParams) Adds supercategories attribute toExcelExportParams.getSelectedAttributes()if: supercategory is not yet selected, and at least one classification attribute has been selected, and access to supercategory attribute is not forbidden. OtherwiseExcelExportParamsis returned without any modification.intgetOrder()protected booleanhasAtLeastOneClassificationAttributeSelected(ExcelExportParams excelExportParams) protected booleanhasNotSelectedSupercategoriesAttribute(ExcelExportParams excelExportParams) voidsetOrder(int order) voidsetPermissionCRUDService(PermissionCRUDService permissionCRUDService) voidsetTypeService(TypeService typeService)
-
Constructor Details
-
DefaultExcelSupercategorySelectionDecorator
public DefaultExcelSupercategorySelectionDecorator()
-
-
Method Details
-
decorate
Adds supercategories attribute toExcelExportParams.getSelectedAttributes()if:- supercategory is not yet selected,
- and at least one classification attribute has been selected,
- and access to supercategory attribute is not forbidden.
ExcelExportParamsis returned without any modification.- Specified by:
decoratein interfaceExcelExportParamsDecorator- Parameters:
excelExportParams- that should be populated with supercategories attribute- Returns:
- excelExportParams with selected supercategory attribute if the above conditions are met
- See Also:
-
hasNotSelectedSupercategoriesAttribute
-
hasAtLeastOneClassificationAttributeSelected
-
canReadSupercategoriesAttribute
protected boolean canReadSupercategoriesAttribute() -
setTypeService
-
setPermissionCRUDService
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceExcelExportParamsDecorator- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) -
getProductType
-
getProductSupercategoriesAttribute
-