Class DatabaseResourceSort

java.lang.Object
fr.paris.lutece.plugins.resource.business.database.DatabaseResourceSort

public final class DatabaseResourceSort extends Object
Database resource sort DTO
  • Method Details

    • getSort

      public String getSort()
      Get the sort column name
      Returns:
      The sort column name
    • getSortAsc

      public boolean getSortAsc()
      Check if the sort should be ascending or descending
      Returns:
      True to sort ascending, false otherwise
    • getDatabaseResourceSort

      public static DatabaseResourceSort getDatabaseResourceSort(String strSort, boolean bSortAsc)
      Get a sort from a column name
      Parameters:
      strSort - The sort to get
      bSortAsc - True to sort ascending, false otherwise
      Returns:
      The sort, or the default sort if the specified one does not match any of the columns