You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by la...@apache.org on 2016/09/29 12:45:15 UTC

[38/50] [abbrv] airavata git commit: setting default gateway approval status

setting default gateway approval status


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

Branch: refs/heads/lahiru/AIRAVATA-2065
Commit: f3b8e021cbaba7e218a70dbf7b9d1a59e9b11047
Parents: a5156a9
Author: scnakandala <su...@gmail.com>
Authored: Wed Sep 21 17:12:00 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed Sep 21 17:12:00 2016 -0400

----------------------------------------------------------------------
 .../core/experiment/catalog/impl/ExperimentCatalogImpl.java        | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/f3b8e021/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
index 3bc0b92..8494493 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ExperimentCatalogImpl.java
@@ -38,6 +38,7 @@ import org.apache.airavata.model.status.ProcessStatus;
 import org.apache.airavata.model.status.TaskStatus;
 import org.apache.airavata.model.task.TaskModel;
 import org.apache.airavata.model.workspace.Gateway;
+import org.apache.airavata.model.workspace.GatewayApprovalStatus;
 import org.apache.airavata.model.workspace.Notification;
 import org.apache.airavata.model.workspace.Project;
 import org.apache.airavata.registry.core.experiment.catalog.ExpCatResourceUtils;
@@ -65,6 +66,7 @@ public class ExperimentCatalogImpl implements ExperimentCatalog {
             if (!ExpCatResourceUtils.isGatewayExist(ServerSettings.getDefaultUserGateway())){
                 gatewayResource = (GatewayResource) ExpCatResourceUtils.createGateway(ServerSettings.getDefaultUserGateway());
                 gatewayResource.setGatewayName(ServerSettings.getDefaultUserGateway());
+                gatewayResource.setGatewayApprovalStatus(GatewayApprovalStatus.APPROVED.toString());
                 gatewayResource.save();
             }else {
                 gatewayResource = (GatewayResource) ExpCatResourceUtils.getGateway(ServerSettings.getDefaultUserGateway());