public class StructureAspectsPageIterator extends Object implements PageIterator<AspectListResource>
DEFAULT_PAGE_NUMBER, DEFAULT_PAGE_SIZE| Modifier and Type | Method and Description |
|---|---|
static StructureAspectsPageIterator |
getInstance(StructureClient structureClient,
String id)
Returns an StructureAspectsPageIterator instance initialized with the structureClient
|
static StructureAspectsPageIterator |
getInstance(StructureClient structureClient,
String id,
Integer pageSize)
Returns an StructureAspectsPageIterator instance initialized with the structureClient
|
static StructureAspectsPageIterator |
getInstance(StructureClient structureClient,
String id,
Integer pageSize,
Integer pageNumber)
Returns an StructureAspectsPageIterator instance initialized with the structureClient
|
AspectListResource |
getPage(int pageNumber)
Returns the Structure Aspects at a requested page number
|
AspectListResource |
next()
Returns the next page of Structure Aspects
|
AspectListResource |
previous()
Returns the previous page of Structure Aspects
|
public static StructureAspectsPageIterator getInstance(StructureClient structureClient, String id, Integer pageSize, Integer pageNumber) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure aspectspageSize - number of records that should be available in each page. Default is 2000pageNumber - Page number to be fetched. Default is -1id - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic static StructureAspectsPageIterator getInstance(StructureClient structureClient, String id, Integer pageSize) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure aspectspageSize - number of records that should be available in each page. Default is 2000id - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instance with invalid page sizepublic static StructureAspectsPageIterator getInstance(StructureClient structureClient, String id) throws MindsphereClientException
structureClient - structureClient that will be used to make API calls to fetch the structure aspectsid - Unique identifierMindsphereClientException - thrown if an error occurs while creating an instancepublic AspectListResource next() throws MindsphereException
next in interface PageIterator<AspectListResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectListResource previous() throws MindsphereException
previous in interface PageIterator<AspectListResource>MindsphereException - thrown if an error occurs while attempting to invoke the APIpublic AspectListResource getPage(int pageNumber) throws MindsphereException
getPage in interface PageIterator<AspectListResource>MindsphereException - thrown if an error occurs while attempting to invoke the API