airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata git commit: fixing bug
Date Fri, 29 Apr 2016 19:56:14 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop ab0541aeb -> 72b594a64


fixing bug


Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/72b594a6
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/72b594a6
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/72b594a6

Branch: refs/heads/develop
Commit: 72b594a64c7df89f3d37486575c2e096f07fb87c
Parents: ab0541a
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Fri Apr 29 15:56:10 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Fri Apr 29 15:56:10 2016 -0400

----------------------------------------------------------------------
 .../core/experiment/catalog/resources/NotificationResource.java  | 4 ++++
 1 file changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/72b594a6/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/NotificationResource.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/NotificationResource.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/NotificationResource.java
index d87925e..c6daa67 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/NotificationResource.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/resources/NotificationResource.java
@@ -213,6 +213,8 @@ public class NotificationResource extends AbstractExpCatResource {
                 existingNotification.setNotificationMessage(notificationMessage);
                 existingNotification.setPublishedDate(publishedTime);
                 existingNotification.setExpirationDate(expirationTime);
+                existingNotification.setCreationDate(creationTime);
+                existingNotification.setPriority(priority);
                 em.merge(existingNotification);
             } else {
                 Notification notification = new Notification();
@@ -222,6 +224,8 @@ public class NotificationResource extends AbstractExpCatResource {
                 notification.setNotificationMessage(notificationMessage);
                 notification.setPublishedDate(publishedTime);
                 notification.setExpirationDate(expirationTime);
+                notification.setCreationDate(creationTime);
+                notification.setPriority(priority);
                 em.persist(notification);
             }
             em.getTransaction().commit();


Mime
View raw message