AAI-1523 Batch reformat aai-core
[aai/aai-common.git] / aai-core / src / main / java / org / onap / aai / rest / ueb / NotificationEvent.java
index 5dafebd..61beb8d 100644 (file)
@@ -17,6 +17,7 @@
  * limitations under the License.
  * ============LICENSE_END=========================================================
  */
+
 package org.onap.aai.rest.ueb;
 
 import org.onap.aai.exceptions.AAIException;
@@ -30,68 +31,67 @@ import org.onap.aai.util.StoreNotificationEvent;
  */
 public class NotificationEvent {
 
-       private final Loader loader;
-       
-       private final Introspector eventHeader;
-       
-       private final Introspector obj;
-       private final String transactionId;
-       private final String sourceOfTruth;
-       /**
-        * Instantiates a new notification event.
-        *
-        * @param eventHeader the event header
-        * @param obj the obj
-        */
-       public NotificationEvent (Loader loader, Introspector eventHeader, Introspector obj, String transactionId, String sourceOfTruth) {
-               this.loader = loader;
-               this.eventHeader = eventHeader;
-               this.obj = obj;
-               this.transactionId = transactionId;
-               this.sourceOfTruth = sourceOfTruth;
-       }
-       
-       /**
-        * Trigger.
-        *
-        * @throws AAIException the AAI exception
-        */
-       public void trigger() throws AAIException {
-               
-               StoreNotificationEvent sne = new StoreNotificationEvent(transactionId, sourceOfTruth);
-       
-               sne.storeEvent(loader, eventHeader, obj);
+    private final Loader loader;
+
+    private final Introspector eventHeader;
+
+    private final Introspector obj;
+    private final String transactionId;
+    private final String sourceOfTruth;
+
+    /**
+     * Instantiates a new notification event.
+     *
+     * @param eventHeader the event header
+     * @param obj the obj
+     */
+    public NotificationEvent(Loader loader, Introspector eventHeader, Introspector obj, String transactionId,
+            String sourceOfTruth) {
+        this.loader = loader;
+        this.eventHeader = eventHeader;
+        this.obj = obj;
+        this.transactionId = transactionId;
+        this.sourceOfTruth = sourceOfTruth;
+    }
+
+    /**
+     * Trigger.
+     *
+     * @throws AAIException the AAI exception
+     */
+    public void trigger() throws AAIException {
+
+        StoreNotificationEvent sne = new StoreNotificationEvent(transactionId, sourceOfTruth);
+
+        sne.storeEvent(loader, eventHeader, obj);
+
+    }
+
+    /**
+     * Gets the notification version.
+     *
+     * @return the notification version
+     */
+    public SchemaVersion getNotificationVersion() {
+        return loader.getVersion();
+    }
+
+    /**
+     * Gets the event header.
+     *
+     * @return the event header
+     */
+    public Introspector getEventHeader() {
+        return eventHeader;
+    }
+
+    /**
+     * Gets the obj.
+     *
+     * @return the obj
+     */
+    public Introspector getObj() {
+        return obj;
+    }
 
-       }
-       
-       /**
-        * Gets the notification version.
-        *
-        * @return the notification version
-        */
-       public SchemaVersion getNotificationVersion() {
-               return loader.getVersion();
-       }
-       
-       /**
-        * Gets the event header.
-        *
-        * @return the event header
-        */
-       public Introspector getEventHeader() {
-               return eventHeader;
-       }
-       
-       /**
-        * Gets the obj.
-        *
-        * @return the obj
-        */
-       public Introspector getObj() {
-               return obj;
-       }
-       
-       
-       
-       
 }