org.xcmis.spi
Class ItemsList<T>

java.lang.Object
  extended by org.xcmis.spi.ItemsList<T>

public final class ItemsList<T>
extends Object

List of CMIS items. It contains list itself and additional information such as isHasMoreItems() and getNumItems().

Version:
$Id: CmisObjectInFolderList.java 34360 2009-07-22 23:58:59Z sunman $
Author:
Alexey Zavizionov

Constructor Summary
ItemsList()
          Default constructor.
ItemsList(List<T> list)
          Constructor.
 
Method Summary
 List<T> getItems()
           
 int getNumItems()
           
 boolean isHasMoreItems()
           
 void setHasMoreItems(boolean hasMoreItems)
           
 void setNumItems(int numItems)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemsList

public ItemsList()
Default constructor.


ItemsList

public ItemsList(List<T> list)
Constructor.

Parameters:
list - the list of items.
Method Detail

getItems

public List<T> getItems()
Returns:
set of items

getNumItems

public int getNumItems()
Returns:
total number of items. It is not need to be equals to number of items in current list getItems(). It may be equals to number of items in current list only if this list contains all requested items and no more pages available. This method must return -1 if total number of items in unknown.

setNumItems

public void setNumItems(int numItems)

isHasMoreItems

public boolean isHasMoreItems()
Returns:
false if this is last sub-set of items in paging

setHasMoreItems

public void setHasMoreItems(boolean hasMoreItems)


Copyright © 2011 eXo Platform SAS. All Rights Reserved.