airavata-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From machris...@apache.org
Subject [2/2] airavata git commit: AIRAVATA-2347 Removing code for old project sharing impl
Date Tue, 28 Mar 2017 13:51:08 GMT
AIRAVATA-2347 Removing code for old project sharing impl


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

Branch: refs/heads/develop
Commit: 9b4c9682b13aeb437db51382bba8621622046fe2
Parents: 8c6f18c
Author: Marcus Christie <machristie@apache.org>
Authored: Mon Mar 27 15:15:42 2017 -0400
Committer: Marcus Christie <machristie@apache.org>
Committed: Mon Mar 27 15:15:42 2017 -0400

----------------------------------------------------------------------
 .../catalog/impl/ProjectRegistry.java           | 34 --------------------
 1 file changed, 34 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata/blob/9b4c9682/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java
----------------------------------------------------------------------
diff --git a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java
b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java
index 9e16daa..9e32ef3 100644
--- a/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java
+++ b/modules/registry/registry-core/src/main/java/org/apache/airavata/registry/core/experiment/catalog/impl/ProjectRegistry.java
@@ -76,23 +76,6 @@ public class ProjectRegistry {
             resource.setProjectId(project.getProjectID());
             resource.setUserName(project.getOwner());
             resource.save();
-            List<String> sharedGroups = project.getSharedGroups();
-            if (sharedGroups != null && !sharedGroups.isEmpty()){
-                for (String group : sharedGroups){
-                    //TODO - add shared groups
-                    logger.info("Groups are not supported at the moment...");
-                }
-            }
-
-            List<String> sharedUsers = project.getSharedUsers();
-            if (sharedUsers != null && !sharedUsers.isEmpty()){
-                for (String username : sharedUsers){
-                    ProjectUserResource pr = (ProjectUserResource)projectResource.
-                            create(ResourceType.PROJECT_USER);
-                    pr.setUserName(username);
-                    pr.save();
-                }
-            }
         }catch (Exception e){
             logger.error("Error while saving project to registry", e);
            throw new RegistryException(e);
@@ -126,23 +109,6 @@ public class ProjectRegistry {
             resource.setProjectId(projectId);
             resource.setUserName(project.getOwner());
             resource.save();
-            List<String> sharedGroups = project.getSharedGroups();
-            if (sharedGroups != null && !sharedGroups.isEmpty()){
-                for (String group : sharedGroups){
-                    //TODO - add shared groups
-                    logger.info("Groups are not supported at the moment...");
-                }
-            }
-
-            List<String> sharedUsers = project.getSharedUsers();
-            if (sharedUsers != null && !sharedUsers.isEmpty()){
-                for (String username : sharedUsers){
-                    ProjectUserResource pr = (ProjectUserResource)existingProject.create(
-                            ResourceType.PROJECT_USER);
-                    pr.setUserName(username);
-                    pr.save();
-                }
-            }
         }catch (Exception e){
             logger.error("Error while saving project to registry", e);
            throw new RegistryException(e);


Mime
View raw message