|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PaginationMap
Map for a ListHolder on a list of ListSubject. The map holds a mapping for a page number to a marker, which is used by the interface of the OpenStack API for pagination purposes. The PaginationMap is drawn up in one go, which -- regrettably -- is a necessity because of the marker-mechanism. When the underlying data changes and this needs to be reflected by the client, a new map must be generated.
Method Summary | |
---|---|
String |
getMarker(Integer page)
Gets the marker text (ie, the name of the last record of the previous page) for navigating to another page. |
int |
getNumberOfPages()
Returns the number of pages |
int |
getNumberOfRecords()
Returns the number of records |
int |
getPageSize()
Returns the page size |
String |
getPrefix()
Returns the prefix which is used to search the records |
Method Detail |
---|
String getMarker(Integer page)
page
- the page to get the appropriate marker for
int getNumberOfPages()
int getPageSize()
int getNumberOfRecords()
String getPrefix()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |