summaryrefslogtreecommitdiffstats
path: root/sonar-db
diff options
context:
space:
mode:
authorSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-23 10:14:22 +0100
committerSébastien Lesaint <sebastien.lesaint@sonarsource.com>2016-03-29 13:06:51 +0200
commit1c623f97a76734a13224832da38cfa1721d03abe (patch)
tree1c2d6a0a8426bf0762aa22e5c6f73b1ed2206a97 /sonar-db
parent17f23a671f57beac9980635459a92b1eb4fb5eb8 (diff)
downloadsonarqube-1c623f97a76734a13224832da38cfa1721d03abe.tar.gz
sonarqube-1c623f97a76734a13224832da38cfa1721d03abe.zip
SONAR-7441 add ComputeEngineSide annotation where applicable
Diffstat (limited to 'sonar-db')
-rw-r--r--sonar-db/src/main/java/org/sonar/db/issue/IssueChangeDao.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/purge/period/DefaultPeriodCleaner.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/qualityprofile/QualityProfileDao.java2
-rw-r--r--sonar-db/src/main/java/org/sonar/db/user/AuthorizationDao.java2
6 files changed, 12 insertions, 0 deletions
diff --git a/sonar-db/src/main/java/org/sonar/db/issue/IssueChangeDao.java b/sonar-db/src/main/java/org/sonar/db/issue/IssueChangeDao.java
index 8b8b32a1534..b4e0dd844e5 100644
--- a/sonar-db/src/main/java/org/sonar/db/issue/IssueChangeDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/issue/IssueChangeDao.java
@@ -25,6 +25,7 @@ import java.util.Collection;
import java.util.List;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.core.issue.DefaultIssueComment;
import org.sonar.core.issue.FieldDiffs;
@@ -36,6 +37,7 @@ import org.sonar.db.MyBatis;
import static java.util.Arrays.asList;
@ServerSide
+@ComputeEngineSide
public class IssueChangeDao implements Dao {
private final MyBatis mybatis;
diff --git a/sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java b/sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java
index f83a3460228..0d883a62bd8 100644
--- a/sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/measure/custom/CustomMeasureDao.java
@@ -24,6 +24,7 @@ import java.util.List;
import javax.annotation.CheckForNull;
import javax.annotation.Nonnull;
import org.apache.ibatis.session.RowBounds;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.db.Dao;
import org.sonar.db.DatabaseUtils;
@@ -31,6 +32,7 @@ import org.sonar.db.DbSession;
import org.sonar.db.RowNotFoundException;
@ServerSide
+@ComputeEngineSide
public class CustomMeasureDao implements Dao {
public void insert(DbSession session, CustomMeasureDto customMeasureDto) {
mapper(session).insert(customMeasureDto);
diff --git a/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java b/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java
index 9befe3689cd..cd62f93ec3f 100644
--- a/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java
+++ b/sonar-db/src/main/java/org/sonar/db/permission/PermissionRepository.java
@@ -27,6 +27,7 @@ import javax.annotation.Nullable;
import org.apache.commons.lang.StringUtils;
import org.sonar.api.config.Settings;
import org.sonar.api.security.DefaultGroups;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.db.DbClient;
import org.sonar.db.DbSession;
@@ -43,6 +44,7 @@ import org.sonar.db.user.UserRoleDto;
* WARNING, this class is called by Deveveloper Cockpit to apply default permission template on new developers
*/
@ServerSide
+@ComputeEngineSide
public class PermissionRepository {
private final DbClient dbClient;
diff --git a/sonar-db/src/main/java/org/sonar/db/purge/period/DefaultPeriodCleaner.java b/sonar-db/src/main/java/org/sonar/db/purge/period/DefaultPeriodCleaner.java
index 8d41e91fbe4..f761eafda52 100644
--- a/sonar-db/src/main/java/org/sonar/db/purge/period/DefaultPeriodCleaner.java
+++ b/sonar-db/src/main/java/org/sonar/db/purge/period/DefaultPeriodCleaner.java
@@ -22,6 +22,7 @@ package org.sonar.db.purge.period;
import com.google.common.annotations.VisibleForTesting;
import java.util.List;
import org.sonar.api.config.Settings;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.DateUtils;
import org.sonar.api.utils.log.Logger;
@@ -33,6 +34,7 @@ import org.sonar.db.purge.PurgeSnapshotQuery;
import org.sonar.db.purge.PurgeableSnapshotDto;
@ServerSide
+@ComputeEngineSide
public class DefaultPeriodCleaner {
private static final Logger LOG = Loggers.get(DefaultPeriodCleaner.class);
diff --git a/sonar-db/src/main/java/org/sonar/db/qualityprofile/QualityProfileDao.java b/sonar-db/src/main/java/org/sonar/db/qualityprofile/QualityProfileDao.java
index 089adea159e..1f11add1fee 100644
--- a/sonar-db/src/main/java/org/sonar/db/qualityprofile/QualityProfileDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/qualityprofile/QualityProfileDao.java
@@ -27,6 +27,7 @@ import java.util.List;
import java.util.Map;
import javax.annotation.CheckForNull;
import javax.annotation.Nullable;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.api.utils.System2;
import org.sonar.db.Dao;
@@ -36,6 +37,7 @@ import org.sonar.db.RowNotFoundException;
import org.sonar.db.component.ComponentDto;
@ServerSide
+@ComputeEngineSide
public class QualityProfileDao implements Dao {
private final MyBatis mybatis;
diff --git a/sonar-db/src/main/java/org/sonar/db/user/AuthorizationDao.java b/sonar-db/src/main/java/org/sonar/db/user/AuthorizationDao.java
index 18f34820c04..d24381d4e49 100644
--- a/sonar-db/src/main/java/org/sonar/db/user/AuthorizationDao.java
+++ b/sonar-db/src/main/java/org/sonar/db/user/AuthorizationDao.java
@@ -27,6 +27,7 @@ import java.util.List;
import java.util.Map;
import javax.annotation.Nullable;
import org.apache.ibatis.session.SqlSession;
+import org.sonar.api.ce.ComputeEngineSide;
import org.sonar.api.server.ServerSide;
import org.sonar.db.Dao;
import org.sonar.db.DatabaseUtils;
@@ -36,6 +37,7 @@ import org.sonar.db.MyBatis;
import static com.google.common.collect.Maps.newHashMap;
@ServerSide
+@ComputeEngineSide
public class AuthorizationDao implements Dao {
private static final String USER_ID_PARAM = "userId";