airavata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRAVATA-2662) One-Time Migration to Create the "everyone" Group for all Domains
Date Mon, 26 Feb 2018 20:37:00 GMT

    [ https://issues.apache.org/jira/browse/AIRAVATA-2662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16377544#comment-16377544
] 

ASF GitHub Bot commented on AIRAVATA-2662:
------------------------------------------

machristie commented on a change in pull request #168: [AIRAVATA-2662] Adding Migrator class
to create everyone group in all domains
URL: https://github.com/apache/airavata/pull/168#discussion_r170727172
 
 

 ##########
 File path: airavata-api/airavata-api-server/src/main/java/org/apache/airavata/api/server/handler/AiravataServerHandler.java
 ##########
 @@ -338,6 +338,20 @@ public String addGateway(AuthzToken authzToken, Gateway gateway) throws
InvalidR
             permissionType.setDescription("Write permission type");
             sharingClient.createPermissionType(permissionType);
 
+            //Create an "everyone" group for the domain
+            String groupId = "everyone@" + domain.domainId;
+            UserGroup userGroup = new UserGroup();
+            userGroup.setGroupId(groupId);
+            userGroup.setDomainId(domain.domainId);
+            userGroup.setGroupCardinality(GroupCardinality.MULTI_USER);
+            userGroup.setCreatedTime(System.currentTimeMillis());
+            userGroup.setUpdatedTime(System.currentTimeMillis());
+            userGroup.setOwnerId(authzToken.getClaimsMap().get(Constants.USER_NAME));
 
 Review comment:
   OwnerId should be in the form "username@domainId"

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


> One-Time Migration to Create the "everyone" Group for all Domains
> -----------------------------------------------------------------
>
>                 Key: AIRAVATA-2662
>                 URL: https://issues.apache.org/jira/browse/AIRAVATA-2662
>             Project: Airavata
>          Issue Type: Improvement
>            Reporter: Sneha Tilak
>            Assignee: Sneha Tilak
>            Priority: Major
>
> One-time migration to create and populate the “everyone” group for all existing domains
and share all the existing application deployments with the group.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message