Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CmsDataViewResult

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

        Parameters:
        items - the list of result items
        hitCount - 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_CmsDataViewItemgetItems()
        Gets the list of result items.

        Returns:
        the list of result items