@AlfrescoPublicApi public class PagingRequest extends Object
Constructor and Description |
---|
PagingRequest(int maxItems)
Construct a page request
|
PagingRequest(int skipCount,
int maxItems)
Construct a page request
|
PagingRequest(int skipCount,
int maxItems,
String queryExecutionId)
Construct a page request
|
PagingRequest(int maxItems,
String queryExecutionId)
Construct a page request
|
Modifier and Type | Method and Description |
---|---|
int |
getMaxItems()
Size of the page - if skip count is 0 then return up to max items.
|
String |
getQueryExecutionId()
Get a unique ID associated with these query results.
|
int |
getRequestTotalCountMax()
Get requested total count (up to a given maximum).
|
int |
getSkipCount()
Results to skip before retrieving the page.
|
protected void |
setMaxItems(int maxItems)
Change the size of the page.
|
protected void |
setQueryExecutionId(String queryExecutionId)
Change the unique query ID for the results.
|
void |
setRequestTotalCountMax(int requestTotalCountMax)
Set request total count (up to a given maximum).
|
protected void |
setSkipCount(int skipCount)
Change the skip count.
|
public PagingRequest(int maxItems)
maxItems
- the maximum number of items per pagepublic PagingRequest(int skipCount, int maxItems)
maxItems
- the maximum number of items per pageskipCount
- the number of items to skip before the first pagepublic PagingRequest(int maxItems, String queryExecutionId)
maxItems
- the maximum number of items per pagequeryExecutionId
- a query execution ID associated with ealier paged requestspublic PagingRequest(int skipCount, int maxItems, String queryExecutionId)
skipCount
- the number of items to skip before the first pagemaxItems
- the maximum number of items per pagequeryExecutionId
- a query execution ID associated with ealier paged requestspublic int getSkipCount()
protected void setSkipCount(int skipCount)
public int getMaxItems()
protected void setMaxItems(int maxItems)
public int getRequestTotalCountMax()
public void setRequestTotalCountMax(int requestTotalCountMax)
requestTotalCountMax
- public String getQueryExecutionId()
protected void setQueryExecutionId(String queryExecutionId)
Copyright © 2005–2020 Alfresco Software. All rights reserved.