Removing code for old project sharing impl
@@ -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);
