Class DatabaseResourceSort
java.lang.Object
fr.paris.lutece.plugins.resource.business.database.DatabaseResourceSort
Database resource sort DTO
-
Method Summary
Modifier and TypeMethodDescriptionstatic DatabaseResourceSortgetDatabaseResourceSort(String strSort, boolean bSortAsc) Get a sort from a column namegetSort()Get the sort column namebooleanCheck if the sort should be ascending or descending
-
Method Details
-
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
Get a sort from a column name- Parameters:
strSort- The sort to getbSortAsc- True to sort ascending, false otherwise- Returns:
- The sort, or the default sort if the specified one does not match any of the columns
-