airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shame...@apache.org
Subject [10/12] airavata git commit: setting gatewayApproaval status
Date Fri, 15 Jul 2016 18:30:45 GMT
setting gatewayApproaval status


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

Branch: refs/heads/master
Commit: c811b57efff9e411cd413215d6ba19ab19f89303
Parents: 1815433
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Thu Jul 14 01:15:08 2016 -0400
Committer: Shameera Rathnayaka <shameerainfo@gmail.com>
Committed: Fri Jul 15 14:28:05 2016 -0400

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


http://git-wip-us.apache.org/repos/asf/airavata/blob/c811b57e/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
index 45e7d20..26d46f7 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/GatewayRegistry.java
@@ -49,6 +49,7 @@ public class GatewayRegistry {
     public String addGateway (Gateway gateway) throws RegistryException{
         try {
             GatewayResource resource = (GatewayResource) ExpCatResourceUtils.createGateway(gateway.getGatewayId());
+            resource.setGatewayApprovalStatus(gateway.getGatewayApprovalStatus().toString());
             resource.setGatewayName(gateway.getGatewayName());
             resource.setEmailAddress(gateway.getEmailAddress());
             resource.setDomain(gateway.getDomain());
@@ -72,6 +73,7 @@ public class GatewayRegistry {
     public void updateGateway (String gatewayId, Gateway updatedGateway) throws RegistryException{
         try {
             GatewayResource existingGateway = (GatewayResource) ExpCatResourceUtils.getGateway(gatewayId);
+            existingGateway.setGatewayApprovalStatus(updatedGateway.getGatewayApprovalStatus().toString());
             existingGateway.setGatewayName(updatedGateway.getGatewayName());
             existingGateway.setEmailAddress(updatedGateway.getEmailAddress());
             existingGateway.setDomain(updatedGateway.getDomain());


Mime
View raw message