Package org.ametys.cms.search
Class Sort
java.lang.Object
org.ametys.cms.search.Sort
Class representing a sort criterion.
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
The sort field.protected Sort.Order
The sort order. -
Constructor Summary
ConstructorDescriptionSort
(String field, Sort.Order order) Build a new Sort criterion.Sort
(SearchField field, Sort.Order order) Build a new Sort criterion. -
Method Summary
Modifier and TypeMethodDescriptiongetField()
Get the sort field.getOrder()
Get the sort order.void
Set the sort field.void
setOrder
(Sort.Order order) Set the sort order.
-
Field Details
-
_field
The sort field. -
_order
The sort order.
-
-
Constructor Details
-
Sort
Build a new Sort criterion.- Parameters:
field
- The sort field as a String.order
- The sort order.
-
Sort
Build a new Sort criterion.- Parameters:
field
- The sort field as aSearchField
.order
- The sort order.
-
-
Method Details
-
getField
Get the sort field.- Returns:
- The sort field.
-
setField
Set the sort field.- Parameters:
field
- The sort field.
-
getOrder
Get the sort order.- Returns:
- The sort order.
-
setOrder
Set the sort order.- Parameters:
order
- The sort order.
-