private FlexiBean createSearchResultData(PagingRequest pr, String name, RegionClassification classification,
List<String> regionIdStrs, UriInfo uriInfo) {
FlexiBean out = createRootData();
RegionSearchRequest searchRequest = new RegionSearchRequest();
searchRequest.setPagingRequest(pr);
searchRequest.setName(StringUtils.trimToNull(name));
searchRequest.setClassification(classification);
MultivaluedMap<String, String> query = uriInfo.getQueryParameters();
for (int i = 0; query.containsKey("idscheme." + i) && query.containsKey("idvalue." + i); i++) {
ExternalId id = ExternalId.of(query.getFirst("idscheme." + i), query.getFirst("idvalue." + i));
searchRequest.addExternalId(id);
}
for (String regionIdStr : regionIdStrs) {
searchRequest.addObjectId(ObjectId.parse(regionIdStr));
}
out.put("searchRequest", searchRequest);
if (data().getUriInfo().getQueryParameters().size() > 0) {
RegionSearchResult searchResult = data().getRegionMaster().search(searchRequest);