diff options
author | Léo Geoffroy <leo.geoffroy@sonarsource.com> | 2023-05-17 19:07:41 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-06-01 20:02:59 +0000 |
commit | ed9e9fe01378bf17277ed300689b1304ee4497f6 (patch) | |
tree | 767faf1e829e92a55c46ee7d2a3e028f98895cfe /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | |
parent | aa08b062fe0ad882f7da840e8a6eb01bcc87b4e1 (diff) | |
download | sonarqube-ed9e9fe01378bf17277ed300689b1304ee4497f6.tar.gz sonarqube-ed9e9fe01378bf17277ed300689b1304ee4497f6.zip |
SONAR-18856 Extract governance reports data from properties table
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.java | 15 |
1 files changed, 15 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 80add385af8..7acf9c8ad5b 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 @@ -78,6 +78,8 @@ import org.sonar.db.qualityprofile.QProfileEditUsersDao; import org.sonar.db.qualityprofile.QualityProfileDao; import org.sonar.db.qualityprofile.QualityProfileExportDao; import org.sonar.db.report.RegulatoryReportDao; +import org.sonar.db.report.ReportScheduleDao; +import org.sonar.db.report.ReportSubscriptionDao; import org.sonar.db.rule.RuleDao; import org.sonar.db.rule.RuleRepositoryDao; import org.sonar.db.scannercache.ScannerAnalysisCacheDao; @@ -181,6 +183,9 @@ public class DbClient { private final ScimGroupDao scimGroupDao; private final EntityDao entityDao; + private final ReportScheduleDao reportScheduleDao; + private final ReportSubscriptionDao reportSubscriptionDao; + public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; this.myBatis = myBatis; @@ -266,6 +271,8 @@ public class DbClient { scimUserDao = getDao(map, ScimUserDao.class); scimGroupDao = getDao(map, ScimGroupDao.class); entityDao = getDao(map, EntityDao.class); + reportScheduleDao = getDao(map, ReportScheduleDao.class); + reportSubscriptionDao = getDao(map, ReportSubscriptionDao.class); } public DbSession openSession(boolean batch) { @@ -589,5 +596,13 @@ public class DbClient { public EntityDao entityDao() { return entityDao; } + + public ReportScheduleDao reportScheduleDao(){ + return reportScheduleDao; + } + + public ReportSubscriptionDao reportSubscriptionDao() { + return reportSubscriptionDao; + } } |