aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorWojtek Wajerowicz <115081248+wojciech-wajerowicz-sonarsource@users.noreply.github.com>2023-05-04 09:16:57 +0200
committersonartech <sonartech@sonarsource.com>2023-05-11 20:03:14 +0000
commitca468111e1e8425cdbc9b9c23e80c3ab563f6115 (patch)
treee75854dd50a97f10ee9dd9a200f171c48839d29b /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent75c9f37081c78eff7c7452aa5b00bc2f40970e21 (diff)
downloadsonarqube-ca468111e1e8425cdbc9b9c23e80c3ab563f6115.tar.gz
sonarqube-ca468111e1e8425cdbc9b9c23e80c3ab563f6115.zip
SONAR-19085 Add step to fetch groups from DB
Diffstat (limited to 'server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java')
-rw-r--r--server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
index 906edafaee2..4179b7dc7e1 100644
--- a/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
+++ b/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
@@ -84,6 +84,7 @@ import org.sonar.db.schemamigration.SchemaMigrationDao;
import org.sonar.db.scim.ScimGroupDao;
import org.sonar.db.scim.ScimUserDao;
import org.sonar.db.source.FileSourceDao;
+import org.sonar.db.user.ExternalGroupDao;
import org.sonar.db.user.GroupDao;
import org.sonar.db.user.GroupMembershipDao;
import org.sonar.db.user.RoleDao;
@@ -149,6 +150,7 @@ public class DbClient {
private final NotificationQueueDao notificationQueueDao;
private final MetricDao metricDao;
private final GroupDao groupDao;
+ private final ExternalGroupDao externalGroupDao;
private final RuleDao ruleDao;
private final RuleRepositoryDao ruleRepositoryDao;
private final ActiveRuleDao activeRuleDao;
@@ -232,6 +234,7 @@ public class DbClient {
notificationQueueDao = getDao(map, NotificationQueueDao.class);
metricDao = getDao(map, MetricDao.class);
groupDao = getDao(map, GroupDao.class);
+ externalGroupDao = getDao(map, ExternalGroupDao.class);
ruleDao = getDao(map, RuleDao.class);
ruleRepositoryDao = getDao(map, RuleRepositoryDao.class);
activeRuleDao = getDao(map, ActiveRuleDao.class);
@@ -470,6 +473,10 @@ public class DbClient {
return groupDao;
}
+ public ExternalGroupDao externalGroupDao() {
+ return externalGroupDao;
+ }
+
public RuleDao ruleDao() {
return ruleDao;
}