Interface SearchSort
- All Superinterfaces:
Expandable<SearchSort>
- All Known Implementing Classes:
AbstractSort
,ContentIdSort
,CreatedSort
,FavouriteSort
,FieldSort
,FilenameSort
,FilesizeSort
,FullnameSort
,LowercaseFieldSort
,ModifiedSort
,MultiSearchSort
,RelevanceSort
,TitleSort
,UserAttributeSort
Represents some method for sorting search results, and the order in which to search them. Implementations should be
immutable.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Enum defining the types of ordering supported.static enum
-
Method Summary
Modifier and TypeMethodDescriptiondefault SearchSort
expand()
Expand this query/filter into a composite query/filter (that composes others).getKey()
Gets the key that uniquely identifies this sort method.getOrder()
Returns the order (whetherSearchSort.Order.ASCENDING
orSearchSort.Order.DESCENDING
) of the sort.
-
Method Details
-
getKey
String getKey()Gets the key that uniquely identifies this sort method.- Returns:
- the sort key
-
getOrder
SearchSort.Order getOrder()Returns the order (whetherSearchSort.Order.ASCENDING
orSearchSort.Order.DESCENDING
) of the sort.- Returns:
- the order (whether
SearchSort.Order.ASCENDING
orSearchSort.Order.DESCENDING
) of the sort.
-
expand
Description copied from interface:Expandable
Expand this query/filter into a composite query/filter (that composes others).- Specified by:
expand
in interfaceExpandable<SearchSort>
- Returns:
- a query/filter
-