Package org.opencms.widgets.dataview
Class CmsDataViewResult
java.lang.Object
org.opencms.widgets.dataview.CmsDataViewResult
Represents the result of a search query returned by an implementation of I_CmsDataView.
This contains both a list of result items and a total hit count for the given query.
-
Constructor Summary
ConstructorDescriptionCmsDataViewResult
(List<I_CmsDataViewItem> items, int hitCount) Creates a new result. -
Method Summary
Modifier and TypeMethodDescriptionint
Gets the total number of results, disregarding paging.getItems()
Gets the list of result items.
-
Constructor Details
-
CmsDataViewResult
Creates a new result.- Parameters:
items
- the list of result itemshitCount
- the total hit count
-
-
Method Details
-
getHitCount
Gets the total number of results, disregarding paging. This count should be as accurate as possible.- Returns:
- the total hit count
-
getItems
Gets the list of result items.- Returns:
- the list of result items
-