public class CollectionWithPagingInfo
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
CollectionWithPagingInfo(java.util.Collection collection,
Paging paging,
boolean hasMoreItems,
java.lang.Integer totalItems)
Constructs a new CollectionWithPagingInfo.
|
Modifier and Type | Method and Description |
---|---|
static CollectionWithPagingInfo |
asPaged(Paging paging,
java.util.Collection aCollection)
Constructs a new CollectionWithPagingInfo.
|
static CollectionWithPagingInfo |
asPaged(Paging paging,
java.util.Collection aCollection,
boolean hasMoreItems,
java.lang.Integer totalItems)
Constructs a new CollectionWithPagingInfo.
|
static CollectionWithPagingInfo |
asPagedCollection(java.lang.Object[] entity)
Constructs a new CollectionWithPagingInfo using a number of entity values.
|
java.util.Collection |
getCollection()
Returns the Collection object
|
Paging |
getPaging()
The requested paging parameters set by the client
|
java.lang.Integer |
getTotalItems()
Indicates the total number of items available.
|
boolean |
hasMoreItems()
Indicates if the returned collection has more items after the current returned list.
|
protected CollectionWithPagingInfo(java.util.Collection collection, Paging paging, boolean hasMoreItems, java.lang.Integer totalItems)
aCollection
- - the collection that needs to be paged.hasMoreItems
- - Are there more items after this Collection?paging
- - Paging request infototalItems
- - The total number of items available.public static CollectionWithPagingInfo asPaged(Paging paging, java.util.Collection aCollection)
paging
- - Paging request infoaCollection
- - the collection that needs to be paged.public static CollectionWithPagingInfo asPagedCollection(java.lang.Object[] entity)
entity
- - the entities to turn into a collectionpublic static CollectionWithPagingInfo asPaged(Paging paging, java.util.Collection aCollection, boolean hasMoreItems, java.lang.Integer totalItems)
paging
- - Paging request infoaCollection
- - the collection that needs to be paged.hasMoreItems
- - Are there more items after this Collection?totalItems
- - The total number of items available.public java.util.Collection getCollection()
public boolean hasMoreItems()
hasMoreItems
- public java.lang.Integer getTotalItems()
public Paging getPaging()
Copyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.