Multidomain MDM
- Multidomain MDM 10.3 HotFix 1
- All Products
Parameter | Description |
---|---|
SearchToken | Identifies which search to return additional results for. |
RecordsToReturn | The number of records to return. |
FirstRecord | The index of the first record to return. This parameter is useful for returning subsequent pages of results. For example, if RecordsToReturn= 20 and FirstRecord=41 , the third page of results is returned (records 41 to 60). GetSearchResults returns an error if the value of FirstRecord is 0, a negative value, or greater than the number of records returned by the original search query. |
... SearchQueryResponse sqResponse = (SearchQueryResponse) sipClient.process(request); String searchToken = sqResponse.getSearchToken(); GetSearchResultsRequest request = new GetSearchResultsRequest(); request.setSearchToken(searchToken); request.setRecordsToReturn(10); request.setFirstRecord(11); GetSearchResultsResponse response = (GetSearchResultsResponse) sipClient.process(request);
GetSearchResultsResponse response = new GetSearchResultsResponse(); int i=0; for(Iterator iter=response.getRecords().iterator(); iter.hasNext();) { //iterate through response records System.out.println("Printing response record " + i); Record record = (Record) iter.next(); Collection fields = record.getFields(); for(Iterator fieldIter=fields.iterator(); fieldIter.hasNext();) { //iterate through rest of fields Field f = (Field) fieldIter.next(); System.out.println(f.getName() + ": " + f.getValue()); } }