Package org.ametys.cms.search
Class Sort
- java.lang.Object
-
- org.ametys.cms.search.Sort
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Sort.Order
Sort order.
-
Field Summary
Fields Modifier and Type Field Description protected String
_field
The sort field.protected Sort.Order
_order
The sort order.
-
Constructor Summary
Constructors Constructor Description Sort(String field, Sort.Order order)
Build a new Sort criterion.Sort(SearchField field, Sort.Order order)
Build a new Sort criterion.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getField()
Get the sort field.Sort.Order
getOrder()
Get the sort order.void
setField(String field)
Set the sort field.void
setOrder(Sort.Order order)
Set the sort order.
-
-
-
Field Detail
-
_order
protected Sort.Order _order
The sort order.
-
-
Constructor Detail
-
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 aSearchField
.order
- The sort order.
-
-
Method Detail
-
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.
-
-