You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by sc...@apache.org on 2016/08/03 14:39:18 UTC
airavata git commit: adding missing update lines
Repository: airavata
Updated Branches:
refs/heads/develop 3e9935f2a -> 79bdeb123
adding missing update lines
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/79bdeb12
Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/79bdeb12
Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/79bdeb12
Branch: refs/heads/develop
Commit: 79bdeb12336faed97308fb34a9e6a65b213361a3
Parents: 3e9935f
Author: scnakandala <su...@gmail.com>
Authored: Wed Aug 3 10:39:14 2016 -0400
Committer: scnakandala <su...@gmail.com>
Committed: Wed Aug 3 10:39:14 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/79bdeb12/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 26d46f7..5ea914d 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
@@ -62,6 +62,7 @@ public class GatewayRegistry {
resource.setGatewayAdminEmail(gateway.getGatewayAdminEmail());
resource.setIdentityServerUserName(gateway.getIdentityServerUserName());
resource.setIdentityServerPasswordToken(gateway.getIdentityServerPasswordToken());
+ resource.setDeclinedReason(gateway.getDeclinedReason());
resource.save();
return gateway.getGatewayId();
}catch (RegistryException e){
@@ -86,6 +87,7 @@ public class GatewayRegistry {
existingGateway.setGatewayAdminEmail(updatedGateway.getGatewayAdminEmail());
existingGateway.setIdentityServerUserName(updatedGateway.getIdentityServerUserName());
existingGateway.setIdentityServerPasswordToken(updatedGateway.getIdentityServerPasswordToken());
+ existingGateway.setDeclinedReason(updatedGateway.getDeclinedReason());
existingGateway.save();
}catch (RegistryException e){
logger.error("Error while updating gateway to registry", e);