Class CmsDataViewResult

java.lang.Object
org.opencms.widgets.dataview.CmsDataViewResult

public class CmsDataViewResult extends 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 Details

    • CmsDataViewResult

      public CmsDataViewResult(List<I_CmsDataViewItem> items, int hitCount)
      Creates a new result.

      Parameters:
      items - the list of result items
      hitCount - the total hit count
  • Method Details

    • 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

      Gets the list of result items.

      Returns:
      the list of result items