Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id A2306200B45 for ; Fri, 15 Jul 2016 20:30:37 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A0D75160A91; Fri, 15 Jul 2016 18:30:37 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 01132160A57 for ; Fri, 15 Jul 2016 20:30:36 +0200 (CEST) Received: (qmail 39920 invoked by uid 500); 15 Jul 2016 18:30:36 -0000 Mailing-List: contact commits-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list commits@airavata.apache.org Received: (qmail 39900 invoked by uid 99); 15 Jul 2016 18:30:36 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 Jul 2016 18:30:36 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 186D9E0A3F; Fri, 15 Jul 2016 18:30:36 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: shameera@apache.org To: commits@airavata.apache.org Date: Fri, 15 Jul 2016 18:30:36 -0000 Message-Id: <31d78c00a09b44cca362e628eb385780@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [01/12] airavata git commit: setting gatewayApproaval status archived-at: Fri, 15 Jul 2016 18:30:37 -0000 Repository: airavata Updated Branches: refs/heads/master 18154337e -> 537098e68 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/1e355bb8 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/1e355bb8 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/1e355bb8 Branch: refs/heads/master Commit: 1e355bb88030ee3abdbe78fc06138c496788a36c Parents: ddda60c Author: scnakandala Authored: Thu Jul 14 01:15:08 2016 -0400 Committer: scnakandala Committed: Thu Jul 14 01:15:08 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/1e355bb8/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());