Project

General

Profile

« Previous | Next » 

Revision 7049

translate "insert" events in Metacat as Event.CREATE events ("create") for DataONE
https://redmine.dataone.org/issues/2461

View differences:

src/edu/ucsb/nceas/metacat/dataone/D1NodeService.java
425 425

  
426 426
      LogEntry le = new LogEntry();
427 427

  
428
      // handle Metacat -> DataONE event conversion
429
      if (eventS.equalsIgnoreCase("insert")) {
430
    	  eventS = Event.CREATE.toString();
431
      }
428 432
      Event e = Event.convert(eventS);
429 433
      if (e == null) { // skip any events that are not Dataone Crud events
430
        continue;
434
          logMetacat.warn("skipping unknown event type: '" + eventS + "'");
435
          continue;
431 436
      }
432 437
      le.setEvent(e);
433 438
      le.setEntryId(entryId);
......
450 455
        // "Error getting pid for localId " +
451 456
        // docid + ": " + ex.getMessage());\
452 457

  
458
          logMetacat.warn("could not find pid for docid '" + docid + "'");
459

  
453 460
        // skip it if the pid can't be found
454 461
        continue;
455 462
      }

Also available in: Unified diff