Interface SorterKey

  • All Known Implementing Classes:
    SorterKeyImpl

    public interface SorterKey
    Represents a sort key with sort order in the data model of product sorter UI.
    • Method Detail

      • getName

        String getName()
        Returns:
        The sort key.
      • getLabel

        String getLabel()
        Returns:
        A user friendly localizable label of a sort key.
      • getOrder

        Sorter.Order getOrder()
        Returns:
        The ordering related to this key.
      • isSelected

        boolean isSelected()
        Returns:
        true if this is the currently selected key, false otherwise.
      • getCurrentOrderParameters

        Map<String,​String> getCurrentOrderParameters()
        Returns:
        The filtering parameters related to the current sort key and sort order.
      • getOppositeOrderParameters

        Map<String,​String> getOppositeOrderParameters()
        Returns:
        The filtering parameters related to the current sort key but opposite sort order.