diff options
author | lukasz-jarocki-sonarsource <lukasz.jarocki@sonarsource.com> | 2023-10-05 17:06:41 +0200 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-10-10 20:02:44 +0000 |
commit | 9ff811fd2d3421731dfb4097e8748cee1553d2c5 (patch) | |
tree | 45d4866bd21131d61def4f67536433aaade279c2 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java | |
parent | 047d3846d5e415786323625cd5101a9d54b04725 (diff) | |
download | sonarqube-9ff811fd2d3421731dfb4097e8748cee1553d2c5.tar.gz sonarqube-9ff811fd2d3421731dfb4097e8748cee1553d2c5.zip |
SONAR-20548 added event for changing the CCT data for rules
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 | 7 |
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 9949da0a223..f4f30d4e406 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 @@ -82,6 +82,7 @@ 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.RuleChangeDao; import org.sonar.db.rule.RuleDao; import org.sonar.db.rule.RuleRepositoryDao; import org.sonar.db.scannercache.ScannerAnalysisCacheDao; @@ -189,6 +190,7 @@ public class DbClient { private final ReportSubscriptionDao reportSubscriptionDao; private final GithubOrganizationGroupDao githubOrganizationGroupDao; private final GithubPermissionsMappingDao githubPermissionsMappingDao; + private final RuleChangeDao ruleChangeDao; public DbClient(Database database, MyBatis myBatis, DBSessions dbSessions, Dao... daos) { this.database = database; @@ -279,6 +281,7 @@ public class DbClient { reportScheduleDao = getDao(map, ReportScheduleDao.class); reportSubscriptionDao = getDao(map, ReportSubscriptionDao.class); anticipatedTransitionDao = getDao(map, AnticipatedTransitionDao.class); + ruleChangeDao = getDao(map, RuleChangeDao.class); } public DbSession openSession(boolean batch) { @@ -618,5 +621,9 @@ public class DbClient { public AnticipatedTransitionDao anticipatedTransitionDao() { return anticipatedTransitionDao; } + + public RuleChangeDao ruleChangeDao() { + return ruleChangeDao; + } } |