Package org.opencms.widgets.dataview
Class CmsDataViewQuery
java.lang.Object
org.opencms.widgets.dataview.CmsDataViewQuery
Represents a search query which can be submitted to an implementation of I_CmsDataView to retrieve a set of results.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the selected filter values.Gets the full text query.Gets the column to sort by.boolean
Returns true if the sorting for the given sort column should be in ascending order.void
setFilterValues
(LinkedHashMap<String, String> filterValues) Sets the selected filter values.void
setFullTextQuery
(String query) Sets the full text query.void
setSortAscending
(boolean ascending) Sets the sort direction.void
setSortColumn
(String sortColumn) Sets the sort column.
-
Constructor Details
-
CmsDataViewQuery
public CmsDataViewQuery()
-
-
Method Details
-
getFilterValues
Gets the selected filter values.- Returns:
- the selected filter values
-
getFullTextQuery
Gets the full text query.If no full text query is provided, this will return the empty string.
- Returns:
- the full text query
-
getSortColumn
Gets the column to sort by.If this method returns null, unsorted results should be returned.
- Returns:
- the column to sort by
-
isSortAscending
Returns true if the sorting for the given sort column should be in ascending order.- Returns:
- true if the results should be sorted in ascending order
-
setFilterValues
Sets the selected filter values.- Parameters:
filterValues
- the filter values
-
setFullTextQuery
Sets the full text query.- Parameters:
query
- the full text query
-
setSortAscending
Sets the sort direction.- Parameters:
ascending
- true if results should be sorted in ascending order
-
setSortColumn
Sets the sort column.- Parameters:
sortColumn
- the sort column
-