* @throws IOException if accessing index fails
*/
protected void deleteSourceURIs(Publisher publisher, Iterable<Map.Entry<String,String>> sourceURIs, CatalogRecordListener listener)
throws ImsServiceException, SQLException, CatalogIndexException, IOException {
ImsMetadataAdminDao adminDao = new ImsMetadataAdminDao(getRequestContext());
DeleteMetadataRequest delRequest = new DeleteMetadataRequest(
this.getRequestContext(),publisher);
for (Map.Entry<String,String> entry: sourceURIs) {
if (Thread.currentThread().isInterrupted()) break;
String uri = entry.getKey();
String uuid = entry.getValue();
LOGGER.finest("Deleting uuid="+uuid+", sourceuri="+uri);
boolean bOk = delRequest.executeDelete(uuid);
if (bOk) {
listener.onRecord(uri, uuid);
}
}
}