Class MultiSearchSort
- java.lang.Object
-
- com.atlassian.confluence.search.v2.sort.MultiSearchSort
-
- All Implemented Interfaces:
Expandable<SearchSort>,SearchSort
@SearchPrimitive public class MultiSearchSort extends Object implements SearchSort
This composite SearchSort that allows sort by multiple fields. This class is relocated from confluence-cql-plugin.- Since:
- 7.0
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.search.v2.SearchSort
SearchSort.Order, SearchSort.Type
-
-
Constructor Summary
Constructors Constructor Description MultiSearchSort(Iterable<SearchSort> searchSorts)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetKey()Gets the key that uniquely identifies this sort method.SearchSort.OrdergetOrder()Returns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.List<SearchSort>getSearchSorts()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.atlassian.confluence.search.v2.SearchSort
expand
-
-
-
-
Field Detail
-
KEY
public static final String KEY
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MultiSearchSort
public MultiSearchSort(Iterable<SearchSort> searchSorts)
-
-
Method Detail
-
getKey
public String getKey()
Description copied from interface:SearchSortGets the key that uniquely identifies this sort method.- Specified by:
getKeyin interfaceSearchSort- Returns:
- the sort key
-
getOrder
public SearchSort.Order getOrder()
Description copied from interface:SearchSortReturns the order (whetherSearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.- Specified by:
getOrderin interfaceSearchSort- Returns:
- the order (whether
SearchSort.Order.ASCENDINGorSearchSort.Order.DESCENDING) of the sort.
-
getSearchSorts
public List<SearchSort> getSearchSorts()
-
-