Package org.opencms.widgets.dataview
Class CmsDataViewResult
- java.lang.Object
-
- org.opencms.widgets.dataview.CmsDataViewResult
-
public class CmsDataViewResult extends java.lang.Object
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
Constructors Constructor Description CmsDataViewResult(java.util.List<I_CmsDataViewItem> items, int hitCount)
Creates a new result.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getHitCount()
Gets the total number of results, disregarding paging.java.util.List<I_CmsDataViewItem>
getItems()
Gets the list of result items.
-
-
-
Constructor Detail
-
CmsDataViewResult
public CmsDataViewResult(java.util.List<I_CmsDataViewItem> items, int hitCount)
Creates a new result.- Parameters:
items
- the list of result itemshitCount
- the total hit count
-
-
Method Detail
-
getHitCount
public int getHitCount()
Gets the total number of results, disregarding paging. This count should be as accurate as possible.- Returns:
- the total hit count
-
getItems
public java.util.List<I_CmsDataViewItem> getItems()
Gets the list of result items.- Returns:
- the list of result items
-
-