Class MetadataBasedGroupingProvider

    • Field Detail

      • ACCEPTED_SORTING_METADATA_TYPES

        public static final Set<Class<?>> ACCEPTED_SORTING_METADATA_TYPES
      • ACCEPTED_GROUPING_METADATA_TYPE

        public static final Class<String> ACCEPTED_GROUPING_METADATA_TYPE
    • Constructor Detail

      • MetadataBasedGroupingProvider

        public MetadataBasedGroupingProvider()
    • Method Detail

      • getGroupingMetadataName

        public String getGroupingMetadataName()
        Returns name of the metadata property used to obtain group names.
        Returns:
        Name of the metadata property. May be null when no metadata property was specified.
      • setGroupingMetadataName

        public void setGroupingMetadataName​(String groupingMetadataName)
        Sets the name of the metadata property used to obtain group names. May be set to null do disable grouping. In such case each Property will be in its own, single element group, regardless of the metadata.
        Parameters:
        groupingMetadataName - Name of the metadata. Its type must be ACCEPTED_GROUPING_METADATA_TYPE.
      • getSortingMetadataName

        public String getSortingMetadataName()
        Returns the current name of the metadata property used for sorting.
        Returns:
        Metadata name. May be null.
      • setSortingMetadataName

        public void setSortingMetadataName​(String sortingMetadataName)
        Sets the name of the metadata property used for sorting the properties. May be set to null to disable sorting.
        Parameters:
        sortingMetadataName - Name of the metadata. Its type must belong to ACCEPTED_SORTING_METADATA_TYPES.