Package org.nuxeo.ecm.core.api
Class SortInfo
java.lang.Object
org.nuxeo.ecm.core.api.SortInfo
- All Implemented Interfaces:
Serializable
This class holds the details for sorting.
- Author:
- George Lefter
- See Also:
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Map<String,
Serializable> Returns a map for given sort info, or null if sort info is null.static SortInfo
asSortInfo
(Map<String, Serializable> map) Returns a sort info for given map, or null if map is null or does not contain both keysSORT_COLUMN_NAME
andSORT_ASCENDING_NAME
.boolean
boolean
void
setSortAscending
(boolean sortAscending) void
setSortColumn
(String sortColumn) toString()
-
Field Details
-
SORT_COLUMN_NAME
- See Also:
-
SORT_ASCENDING_NAME
- See Also:
-
sortColumn
-
sortAscending
protected boolean sortAscending
-
-
Constructor Details
-
SortInfo
- Parameters:
sortColumn
- the column to sort by, in schema:field formatsortAscending
- whether to sort ascending or descending
-
-
Method Details
-
getSortAscending
public boolean getSortAscending() -
getSortColumn
- Returns:
- the column to sort by, in schema:field format
-
setSortColumn
- Since:
- 5.4.0
-
setSortAscending
public void setSortAscending(boolean sortAscending) - Since:
- 5.4.0
-
equals
-
asMap
Returns a map for given sort info, or null if sort info is null.The map keys are
SORT_COLUMN_NAME
andSORT_ASCENDING_NAME
.- Since:
- 5.4.0
-
asSortInfo
Returns a sort info for given map, or null if map is null or does not contain both keysSORT_COLUMN_NAME
andSORT_ASCENDING_NAME
.- Since:
- 5.4.0
-
toString
-