@Override public Iterator<Item> findItemsByLiftMetadata(Context context) throws SQLException, IOException, AuthorizeException { return itemService.findByMetadataField(context, lift_schema, lift_element, lift_qualifier, Item.ANY); } }
@Override public DSpaceObject resolve(Context context, String identifier, String... attributes) throws IdentifierNotFoundException, IdentifierNotResolvableException { log.debug("resolve {}", identifier); Iterator<Item> found; try { found = itemService.findByMetadataField(context, MD_SCHEMA, DOI_ELEMENT, DOI_QUALIFIER, idToDOI(identifier)); } catch (IdentifierException | SQLException | AuthorizeException | IOException ex) { log.error(ex.getMessage()); throw new IdentifierNotResolvableException(ex); } if (!found.hasNext()) { throw new IdentifierNotFoundException("No object bound to " + identifier); } Item found1 = found.next(); if (found.hasNext()) { log.error("More than one object bound to {}!", identifier); } log.debug("Resolved to {}", found1); return found1; }
.findByMetadataField(context, dtom.schema, dtom.element, dtom.qualifier, dtom.value); int count = 0; while (itr.hasNext()) {
.findByMetadataField(context, metadataEntry.getSchema(), metadataEntry.getElement(), metadataEntry.getQualifier(), metadataEntry.getValue());