Class Sort

java.lang.Object
org.ametys.cms.search.Sort

public class Sort extends Object
Class representing a sort criterion.
  • Field Details

  • Constructor Details

    • Sort

      public Sort(String field, Sort.Order order)
      Build a new Sort criterion.
      Parameters:
      field - The sort field as a String.
      order - The sort order.
    • Sort

      public Sort(SearchField field, Sort.Order order)
      Build a new Sort criterion.
      Parameters:
      field - The sort field as a SearchField.
      order - The sort order.
  • Method Details

    • getField

      public String getField()
      Get the sort field.
      Returns:
      The sort field.
    • setField

      public void setField(String field)
      Set the sort field.
      Parameters:
      field - The sort field.
    • getOrder

      public Sort.Order getOrder()
      Get the sort order.
      Returns:
      The sort order.
    • setOrder

      public void setOrder(Sort.Order order)
      Set the sort order.
      Parameters:
      order - The sort order.