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 AIRAVATA-2253 : Modifications or new email added for notification are not saved in Experiment
Date Wed, 07 Dec 2016 18:51:44 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop 0cc6ae66f -> 4d5b61ce9


fixing AIRAVATA-2253 : Modifications or new email added for notification are not saved in
Experiment


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

Branch: refs/heads/develop
Commit: 4d5b61ce96796e3835c6f20fb8359a209a953929
Parents: 0cc6ae6
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Wed Dec 7 13:51:22 2016 -0500
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Wed Dec 7 13:51:42 2016 -0500

----------------------------------------------------------------------
 .../core/experiment/catalog/impl/ExperimentRegistry.java  | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/4d5b61ce/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
index 9b8ab09..517766a 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentRegistry.java
@@ -599,7 +599,15 @@ public class ExperimentRegistry {
             existingExperiment.setCreationTime(AiravataUtils.getTime(experiment.getCreationTime()));
             existingExperiment.setDescription(experiment.getDescription());
             existingExperiment.setExecutionId(experiment.getExecutionId());
-            existingExperiment.setEnableEmailNotification(experiment.isEnableEmailNotification());
+
+            if(experiment.isEnableEmailNotification()){
+                existingExperiment.setEnableEmailNotification(true);
+                if(experiment.getEmailAddresses() != null){
+                    existingExperiment.setEmailAddresses(StringUtils.join(experiment.getEmailAddresses(),
","));
+                }
+            }else{
+                existingExperiment.setEnableEmailNotification(false);
+            }
 
             existingExperiment.save();
 


Mime
View raw message