mirror of
https://github.com/google/nomulus.git
synced 2025-05-30 01:10:14 +02:00
Move registry policy settings and some others into YAML config
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=145571850
This commit is contained in:
parent
efedc03d45
commit
f647ea1190
15 changed files with 131 additions and 109 deletions
|
@ -63,7 +63,7 @@ public class DirectoryGroupsConnection implements GroupsConnection {
|
|||
|
||||
@Inject Directory directory;
|
||||
@Inject Groupssettings groupsSettings;
|
||||
@Inject @Config("googleAppsAdminEmailAddress") String googleAppsAdminEmailAddress;
|
||||
@Inject @Config("gSuiteAdminAccountEmailAddress") String gSuiteAdminAccountEmailAddress;
|
||||
@Inject DirectoryGroupsConnection() {}
|
||||
|
||||
@Override
|
||||
|
@ -152,7 +152,7 @@ public class DirectoryGroupsConnection implements GroupsConnection {
|
|||
group.setEmail(groupKey);
|
||||
try {
|
||||
Group createdGroup = directory.groups().insert(group).execute();
|
||||
addMemberToGroup(groupKey, googleAppsAdminEmailAddress, Role.OWNER);
|
||||
addMemberToGroup(groupKey, gSuiteAdminAccountEmailAddress, Role.OWNER);
|
||||
groupsSettings.groups().patch(groupKey, defaultGroupPermissions).execute();
|
||||
return createdGroup;
|
||||
} catch (GoogleJsonResponseException e) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue