200201202203204205206207208209210211212
{ ListIdentifiersResponse response = req.execute(); while (response.hasNext()) { Header h = response.next(); if (!h.isDeleted()) records.add(new RecordInfo(h, s.prefix)); } log.info("Records added to result list : "+ records.size());
127128129130131132133134135136137138139140141142143
} } //--- build header and set some infos Header h = new Header(); h.setIdentifier(uuid); h.setDateStamp(new ISODate(changeDate)); for (MetadataCategory metadataCategory : metadata.getCategories()) { h.addSet(metadataCategory.getName()); } //--- build and return record Record r = new Record();
6970717273747576777879
while (num<Lib.MAX_RECORDS && pos < result.getIds().size()) { int id = result.getIds().get(pos); Header h = buildHeader(context, id, result.prefix); if (h != null) { res.addHeader(h); num++;
119120121122123124125126127128129130131132133134135136137
} } //--- build header and set some infos Header h = new Header(); h.setIdentifier(uuid); h.setDateStamp(changeDate); //--- find and add categories (here called sets) for (MetadataCategory category : metadata.getCategories()) { h.addSet(category.getName()); } return h; }
107108109110111112113
//--- //--------------------------------------------------------------------------- protected Object createObject(Element object) { return new Header(object); }