airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject [16/50] [abbrv] airavata git commit: Set domain-id as gateway-id instead of name in SharingRegistry
Date Wed, 05 Apr 2017 19:10:40 GMT
Set domain-id as gateway-id instead of name in SharingRegistry


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

Branch: refs/heads/develop
Commit: bacc2bf9e44c2625ede0e4163b48472e6138c099
Parents: d1792cc
Author: Gourav Shenoy <shenoy.200@gmail.com>
Authored: Mon Apr 3 17:03:26 2017 -0400
Committer: Gourav Shenoy <shenoy.200@gmail.com>
Committed: Mon Apr 3 17:03:26 2017 -0400

----------------------------------------------------------------------
 .../sharing/registry/server/SharingRegistryServerHandler.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/bacc2bf9/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
index 2fc4acf..aeef289 100644
--- a/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
+++ b/modules/sharing-registry/sharing-registry-server/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
@@ -50,8 +50,8 @@ public class SharingRegistryServerHandler implements SharingRegistryService.Ifac
     @Override
     public String createDomain(Domain domain) throws SharingRegistryException, TException
{
         try{
-            domain.setDomainId(domain.name);
-            if((new DomainRepository()).get(domain.domainId) != null)
+            domain.setDomainId(domain.getDomainId());
+            if((new DomainRepository()).get(domain.getDomainId()) != null)
                 throw new SharingRegistryException("There exist domain with given domain
id");
 
             domain.setCreatedTime(System.currentTimeMillis());


Mime
View raw message