public abstract class VootResponse extends Object
Modifier and Type | Field and Description |
---|---|
protected Integer |
itemsPerPage
Number of items in a page
|
protected Integer |
startIndex
Start index starts with 0
|
protected Integer |
totalResults
Total number of results
|
Constructor and Description |
---|
VootResponse() |
Modifier and Type | Method and Description |
---|---|
Integer |
getItemsPerPage()
Get the number of items in a page.
|
Integer |
getStartIndex()
Get start index, starts with 0
|
Integer |
getTotalResults()
Get the total number of results.
|
void |
paginate(Object[] resultArray,
int start,
int count)
Paginate the results ad assign the values to pagination attributes.
|
void |
setItemsPerPage(Integer itemsPerPage1)
Set the number of items in a page.
|
void |
setStartIndex(Integer startIndex1)
Set start index, starts with 0
|
void |
setTotalResults(Integer totalResults1)
Set the total number of results.
|
protected Integer startIndex
protected Integer totalResults
protected Integer itemsPerPage
public void paginate(Object[] resultArray, int start, int count)
resultArray
- the compelte resultset from Grouperstart
- the index of the first element to be put into resultcount
- the number of elements to be put into resultpublic Integer getStartIndex()
public void setStartIndex(Integer startIndex1)
startIndex1
- the start indexpublic Integer getTotalResults()
public void setTotalResults(Integer totalResults1)
totalResults1
- the total number of results.public Integer getItemsPerPage()
public void setItemsPerPage(Integer itemsPerPage1)
itemsPerPage1
- the number of items in a page.Copyright © 2016 Internet2. All rights reserved.