public class ListBackedPagingResults<R> extends Object implements PagingResults<R>
PagingResults
, used typically when
migrating from a full listing system to a paged one.Constructor and Description |
---|
ListBackedPagingResults(List<R> list) |
ListBackedPagingResults(List<R> list,
PagingRequest paging) |
Modifier and Type | Method and Description |
---|---|
List<R> |
getPage()
Returns the whole set of results as one page
|
String |
getQueryExecutionId()
There is no unique query ID, as no query was done
|
Pair<Integer,Integer> |
getTotalResultCount()
We know exactly how many results there are
|
boolean |
hasMoreItems()
True if more items on next page.
|
public ListBackedPagingResults(List<R> list, PagingRequest paging)
public List<R> getPage()
getPage
in interface PagingResults<R>
public boolean hasMoreItems()
PagingResults
hasMoreItems
in interface PagingResults<R>
public Pair<Integer,Integer> getTotalResultCount()
getTotalResultCount
in interface PagingResults<R>
public String getQueryExecutionId()
getQueryExecutionId
in interface PagingResults<R>
Copyright © 2005–2016 Alfresco Software. All rights reserved.