Interface ExcelExportDivider

  • All Known Implementing Classes:
    DefaultExcelExportDivider

    public interface ExcelExportDivider
    Allows grouping items and attributes by their type
    • Method Detail

      • groupItemsByType

        default java.util.Map<java.lang.String,​java.util.Set<ItemModel>> groupItemsByType​(java.util.Collection<ItemModel> items)
        Groups collection of item models by variants
        Parameters:
        items - to group
        Returns:
        map
      • groupAttributesByType

        default java.util.Map<java.lang.String,​java.util.Set<SelectedAttribute>> groupAttributesByType​(java.util.Collection<java.lang.String> typeCodes,
                                                                                                             java.util.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 variants
        selectedAttributes - by user
        Returns:
        map
      • groupItemsByType

        @Deprecated(since="1808",
                    forRemoval=true)
        java.util.Map<java.lang.String,​java.util.Set<ItemModel>> groupItemsByType​(java.util.List<ItemModel> items)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808, use groupItemsByType(Collection) instead as it is more convenient
        Groups collection of item models by variants
        Parameters:
        items - to group
        Returns:
        map
      • groupAttributesByType

        @Deprecated(since="1808",
                    forRemoval=true)
        java.util.Map<java.lang.String,​java.util.Set<SelectedAttribute>> groupAttributesByType​(java.util.Set<java.lang.String> typeCodes,
                                                                                                     java.util.List<SelectedAttribute> selectedAttributes)
        Deprecated, for removal: This API element is subject to removal in a future version.
        since 1808, use groupAttributesByType(Collection, Collection) instead as it is more convenient
        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 variants
        selectedAttributes - by user
        Returns:
        map