Enhancements for the aai-common library
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / rest / ueb / NotificationEvent.java
index 61beb8d..14e554c 100644 (file)
@@ -63,10 +63,13 @@ public class NotificationEvent {
 
         StoreNotificationEvent sne = new StoreNotificationEvent(transactionId, sourceOfTruth);
 
-        sne.storeEvent(loader, eventHeader, obj);
+        sne.storeEventAndSendToJms(loader, eventHeader, obj);
 
     }
 
+    public String getNotificationEvent() throws AAIException {
+        return new StoreNotificationEvent(transactionId, sourceOfTruth).storeEventOnly(loader, eventHeader, obj);
+    }
     /**
      * Gets the notification version.
      *