Class FindItemsResults<TItem extends Item>

  • Type Parameters:
    TItem - The type of item returned by the search operation.
    All Implemented Interfaces:
    Iterable<TItem>

    public final class FindItemsResults<TItem extends Item>
    extends Object
    implements Iterable<TItem>
    Represents the results of an item search operation.
    • Constructor Detail

      • FindItemsResults

        public FindItemsResults()
        Initializes a new instance of the FindItemsResults class.
    • Method Detail

      • getTotalCount

        public int getTotalCount()
        Gets the total number of item matching the search criteria available in the searched folder.
        Returns:
        the total count
      • setTotalCount

        public void setTotalCount​(int totalCount)
        Sets the total number of item matching the search criteria available in the searched folder.
        Parameters:
        totalCount - the new total count
      • getNextPageOffset

        public Integer getNextPageOffset()
        Gets the offset that should be used with ItemView to retrieve the next page of item in a FindItems operation.
        Returns:
        the next page offset
      • setNextPageOffset

        public void setNextPageOffset​(Integer nextPageOffset)
        Sets the offset that should be used with ItemView to retrieve the next page of item in a FindItems operation.
        Parameters:
        nextPageOffset - the new next page offset
      • isMoreAvailable

        public boolean isMoreAvailable()
        Gets a value indicating whether more item matching the search criteria are available in the searched folder.
        Returns:
        true, if is more available
      • setMoreAvailable

        public void setMoreAvailable​(boolean moreAvailable)
        Sets a value indicating whether more item matching the search criteria are available in the searched folder.
        Parameters:
        moreAvailable - the new more available
      • getItems

        public ArrayList<TItemgetItems()
        Gets a collection containing the item that were found by the search operation.
        Returns:
        the item