aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
diff options
context:
space:
mode:
authorJulien Lancelot <julien.lancelot@sonarsource.com>2019-10-10 16:37:30 +0200
committersonartech <sonartech@sonarsource.com>2019-11-06 10:04:26 +0100
commitab573e2a2597785da80ac461a1c0a3722e5dfdbc (patch)
treea7833b89a2a7148fe75104faf015df2605867831 /server/sonar-db-dao/src/main/java/org/sonar/db/DbClient.java
parent87faff43bcc6dcd1f2ddc6b51ba8eaf7e65ed034 (diff)
downloadsonarqube-ab573e2a2597785da80ac461a1c0a3722e5dfdbc.tar.gz
sonarqube-ab573e2a2597785da80ac461a1c0a3722e5dfdbc.zip
SONAR-12512 Allow project binding on multiple GitHub instances
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 fea23b1b590..6e0d3d800d9 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
@@ -25,6 +25,7 @@ import org.sonar.db.alm.AlmAppInstallDao;
import org.sonar.db.alm.OrganizationAlmBindingDao;
import org.sonar.db.alm.ProjectAlmBindingDao;
import org.sonar.db.alm.setting.AlmSettingDao;
+import org.sonar.db.alm.setting.ProjectAlmSettingDao;
import org.sonar.db.ce.CeActivityDao;
import org.sonar.db.ce.CeQueueDao;
import org.sonar.db.ce.CeScannerContextDao;
@@ -101,6 +102,7 @@ public class DbClient {
private final PropertiesDao propertiesDao;
private final AlmAppInstallDao almAppInstallDao;
private final AlmSettingDao almSettingDao;
+ private final ProjectAlmSettingDao projectAlmSettingDao;
private final ProjectAlmBindingDao projectAlmBindingDao;
private final InternalComponentPropertiesDao internalComponentPropertiesDao;
private final InternalPropertiesDao internalPropertiesDao;
@@ -168,6 +170,7 @@ public class DbClient {
}
almAppInstallDao = getDao(map, AlmAppInstallDao.class);
almSettingDao = getDao(map, AlmSettingDao.class);
+ projectAlmSettingDao = getDao(map, ProjectAlmSettingDao.class);
projectAlmBindingDao = getDao(map, ProjectAlmBindingDao.class);
schemaMigrationDao = getDao(map, SchemaMigrationDao.class);
authorizationDao = getDao(map, AuthorizationDao.class);
@@ -248,6 +251,10 @@ public class DbClient {
return almSettingDao;
}
+ public ProjectAlmSettingDao projectAlmSettingDao() {
+ return projectAlmSettingDao;
+ }
+
public ProjectAlmBindingDao projectAlmBindingsDao() {
return projectAlmBindingDao;
}