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 classSort.OrderSort order.
-
Field Summary
Fields Modifier and Type Field Description protected String_fieldThe sort field.protected Sort.Order_orderThe sort order.private SearchField_searchField
-
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 StringgetField()Get the sort field.Sort.OrdergetOrder()Get the sort order.voidsetField(String field)Set the sort field.voidsetOrder(Sort.Order order)Set the sort order.
-
-
-
Field Detail
-
_order
protected Sort.Order _order
The sort order.
-
_searchField
private SearchField _searchField
-
-
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.
-
-