Class VootResponse
java.lang.Object
edu.internet2.middleware.grouperVoot.messages.VootResponse
- Direct Known Subclasses:
VootGetGroupsResponse
,VootGetMembersResponse
Bean to respresent a valid VOOT response.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the number of items in a page.Get start index, starts with 0Get the total number of results.void
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 0void
setTotalResults
(Integer totalResults1) Set the total number of results.
-
Field Details
-
startIndex
Start index starts with 0 -
totalResults
Total number of results -
itemsPerPage
Number of items in a page
-
-
Constructor Details
-
VootResponse
public VootResponse()
-
-
Method Details
-
paginate
Paginate the results ad assign the values to pagination attributes.- Parameters:
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 result
-
getStartIndex
Get start index, starts with 0- Returns:
- the start index
-
setStartIndex
Set start index, starts with 0- Parameters:
startIndex1
- the start index
-
getTotalResults
Get the total number of results.- Returns:
- the total number of results.
-
setTotalResults
Set the total number of results.- Parameters:
totalResults1
- the total number of results.
-
getItemsPerPage
Get the number of items in a page.- Returns:
- the number of items in a page.
-
setItemsPerPage
Set the number of items in a page.- Parameters:
itemsPerPage1
- the number of items in a page.
-