Interface ExcelExportDivider
- All Known Implementing Classes:
DefaultExcelExportDivider
public interface ExcelExportDivider
Allows grouping items and attributes by their type
-
Method Summary
Modifier and TypeMethodDescriptiondefault Map<String,Set<SelectedAttribute>> groupAttributesByType(Collection<String> typeCodes, Collection<SelectedAttribute> selectedAttributes) Groups collection of selected attributes by variants.groupAttributesByType(Set<String> typeCodes, List<SelectedAttribute> selectedAttributes) Deprecated, for removal: This API element is subject to removal in a future version.groupItemsByType(Collection<ItemModel> items) Groups collection of item models by variantsgroupItemsByType(List<ItemModel> items) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, usegroupItemsByType(Collection)instead as it is more convenient
-
Method Details
-
groupItemsByType
Groups collection of item models by variants- Parameters:
items- to group- Returns:
- map
-
groupAttributesByType
default Map<String,Set<SelectedAttribute>> groupAttributesByType(Collection<String> typeCodes, Collection<SelectedAttribute> selectedAttributes) Groups collection of selected attributes by variants. Attributes of every variant are extended by unique and required attributes for a specific variant.- Parameters:
typeCodes- type codes of extracted variantsselectedAttributes- by user- Returns:
- map
-
groupItemsByType
@Deprecated(since="1808", forRemoval=true) Map<String,Set<ItemModel>> groupItemsByType(List<ItemModel> items) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, usegroupItemsByType(Collection)instead as it is more convenientGroups collection of item models by variants- Parameters:
items- to group- Returns:
- map
-
groupAttributesByType
@Deprecated(since="1808", forRemoval=true) Map<String,Set<SelectedAttribute>> groupAttributesByType(Set<String> typeCodes, List<SelectedAttribute> selectedAttributes) Deprecated, for removal: This API element is subject to removal in a future version.since 1808, usegroupAttributesByType(Collection, Collection)instead as it is more convenientGroups collection of selected attributes by variants. Attributes of every variant are extended by unique and required attributes for a specific variant.- Parameters:
typeCodes- type codes of extracted variantsselectedAttributes- by user- Returns:
- map
-
groupAttributesByType(Collection, Collection)instead as it is more convenient