airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From scnakand...@apache.org
Subject airavata git commit: removing redundant user group creation
Date Mon, 10 Oct 2016 18:53:53 GMT
Repository: airavata
Updated Branches:
  refs/heads/develop a4ed488c9 -> cab0b7797


removing redundant user group creation


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

Branch: refs/heads/develop
Commit: cab0b77979c0691d4fa55e6b87f9f8623ba3c41c
Parents: a4ed488
Author: scnakandala <supun.nakandala@gmail.com>
Authored: Mon Oct 10 14:53:47 2016 -0400
Committer: scnakandala <supun.nakandala@gmail.com>
Committed: Mon Oct 10 14:53:47 2016 -0400

----------------------------------------------------------------------
 .../registry/server/SharingRegistryServerHandler.java    | 11 -----------
 1 file changed, 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/cab0b779/modules/sharing-registry/sharing-registry-core/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
----------------------------------------------------------------------
diff --git a/modules/sharing-registry/sharing-registry-core/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
b/modules/sharing-registry/sharing-registry-core/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
index 2d4b576..8716252 100644
--- a/modules/sharing-registry/sharing-registry-core/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
+++ b/modules/sharing-registry/sharing-registry-core/src/main/java/org/apache/airavata/sharing/registry/server/SharingRegistryServerHandler.java
@@ -22,7 +22,6 @@ package org.apache.airavata.sharing.registry.server;
 
 import org.apache.airavata.common.exception.ApplicationSettingsException;
 import org.apache.airavata.common.utils.ServerSettings;
-import org.apache.airavata.model.workspace.Gateway;
 import org.apache.airavata.sharing.registry.db.entities.GroupMembershipEntityPK;
 import org.apache.airavata.sharing.registry.db.entities.SharingEntityPK;
 import org.apache.airavata.sharing.registry.db.repositories.*;
@@ -427,16 +426,6 @@ public class SharingRegistryServerHandler implements GovRegistryService.Iface{
             user.setUserName(user.userId.split("@")[0]);
 
             createUser(user);
-
-            UserGroup userGroup = new UserGroup();
-            userGroup.setGroupId(user.userId);
-            userGroup.setDomainId(user.domainId);
-            userGroup.setOwnerId(user.userId);
-            userGroup.setName(user.userName);
-            userGroup.setDescription("Single user group for " + user.userName);
-            userGroup.setGroupType(GroupType.SINGLE_USER);
-
-            createGroup(userGroup);
         }
 
         entity.setCreatedTime(System.currentTimeMillis());


Mime
View raw message