use of com.google.gerrit.exceptions.NoSuchGroupException in project gerrit by GerritCodeReview.
the class CreateAccount method addGroupMember.
private void addGroupMember(AccountGroup.UUID groupUuid, Account.Id accountId) throws IOException, NoSuchGroupException, ConfigInvalidException {
GroupDelta groupDelta = GroupDelta.builder().setMemberModification(memberIds -> Sets.union(memberIds, ImmutableSet.of(accountId))).build();
groupsUpdate.get().updateGroup(groupUuid, groupDelta);
}
Aggregations