public interface PagedCollectionResource<T,C extends BaseCollectionRepresentation<T>>
Modifier and Type | Field and Description |
---|---|
static String |
PAGE_NUMBER_KEY |
static String |
PAGE_SIZE_KEY |
Modifier and Type | Method and Description |
---|---|
C |
get(int pageSize,
QueryParam... queryParams)
The method returns the first page.
|
C |
get(QueryParam... queryParams)
The method returns the first page.
|
C |
getNextPage(BaseCollectionRepresentation collectionRepresentation)
The method returns the next page from the collection.
|
C |
getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber)
The method returns the specified page number.
|
C |
getPage(BaseCollectionRepresentation collectionRepresentation,
int pageNumber,
int pageSize)
The method returns the specified page number.
|
C |
getPreviousPage(BaseCollectionRepresentation collectionRepresentation)
This method returns the previous page in the collection.
|
static final String PAGE_SIZE_KEY
static final String PAGE_NUMBER_KEY
C get(QueryParam... queryParams) throws SDKException
queryParams
- query parametersSDKException
- if the query failedC get(int pageSize, QueryParam... queryParams) throws SDKException
pageSize
- - page sizequeryParams
- query parametersSDKException
- if the query failedC getPage(BaseCollectionRepresentation collectionRepresentation, int pageNumber) throws SDKException
collectionRepresentation
- It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.pageNumber
- - page numberSDKException
- if the query failedC getPage(BaseCollectionRepresentation collectionRepresentation, int pageNumber, int pageSize) throws SDKException
collectionRepresentation
- It uses the BaseCollectionRepresentation.getSelf() URL to find the collection.pageNumber
- - page numberpageSize
- - page sizeSDKException
- if the query failedC getNextPage(BaseCollectionRepresentation collectionRepresentation) throws SDKException
collectionRepresentation
- It uses the BaseCollectionRepresentation.getNext() URL to find the collection.SDKException
- if the query failedC getPreviousPage(BaseCollectionRepresentation collectionRepresentation) throws SDKException
collectionRepresentation
- - It uses the BaseCollectionRepresentation.getPrevious() URL to find the collection.SDKException
- if the query failedCopyright © 2020 (C) Cumulocity GmbH. All rights reserved.