Cumulocity API Services / com.softwareag.jc.cumulocity.services.api / ManagedObjectsService / managedObjectsForQuery

managedObjectsForQuery

fun managedObjectsForQuery(pageNum: Int, query: ManagedObjectQuery, responder: RequestResponder<List<ManagedObject>>): Unit

Returns all managed objects for the given page and queries with the page size specified by the @see pageSize property of your instance. Invoke this method for each successive page whilst incrementing the pageNum You will get a empty list once you go past the last page.

Parameters

pageNum - The page to be fetched

query - ManagedObjectQuery representing a collection of queries to be applied

responder - The callback to be invoked with the results