Copyright© 2008-2022 Sitevision AB, all rights reserved.
public interface CustomSort
SearchResult.getCustomSorts()
Modifier and Type | Method and Description |
---|---|
String |
getField()
Gets the name of the index field this custom sort uses.
|
String |
getName()
Gets the name of this custom sort.
|
String |
getSortId()
Gets the identifier of this custom sort.
|
String |
getSortQueryParams()
Returns the query parameters for this custom sort.
|
String |
getSortURL()
Gets the relative URL for this custom sort.
|
boolean |
isDescending()
Whether the sort order is descending or not.
|
boolean |
isSelected()
Whether or not this custom sort is selected.
|
String getName()
String getSortId()
String getField()
boolean isDescending()
true
if the order of this custom this sort is descending, false
otherwise (i.e. order is ascending)boolean isSelected()
true
if this sort is selected, false
otherwiseString getSortURL()
String getSortQueryParams()
The sort query params is a sub-set of the sort URL.
An example: If the sortURL is:
/a/b/c.html?query=d&e=f&g=h
the sortQueryParams will be:
d&e=f&g=h
(Note that the value starts with the "query" parameter, but without the actual query parameter
name: 'query=')
Sitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2022 Sitevision AB, all rights reserved.