aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-deprecated
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-02-03 17:37:34 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-02-03 17:37:34 +0100
commit31af09b42f8aafb2a56522e8670b574603cd9eee (patch)
tree8ad623c3a6a658b4cb45a755367ad24adf995747 /sonar-deprecated
parent68e772f2ce0b97b4c2cdb7f5d16c4bb6202b02d6 (diff)
downloadsonarqube-31af09b42f8aafb2a56522e8670b574603cd9eee.tar.gz
sonarqube-31af09b42f8aafb2a56522e8670b574603cd9eee.zip
SONAR-2094 Do not delete ACTIVE_RULES rows when rules are disabled
Diffstat (limited to 'sonar-deprecated')
-rw-r--r--sonar-deprecated/src/main/java/org/sonar/api/database/daos/RulesDao.java100
1 files changed, 0 insertions, 100 deletions
diff --git a/sonar-deprecated/src/main/java/org/sonar/api/database/daos/RulesDao.java b/sonar-deprecated/src/main/java/org/sonar/api/database/daos/RulesDao.java
deleted file mode 100644
index bc47708c276..00000000000
--- a/sonar-deprecated/src/main/java/org/sonar/api/database/daos/RulesDao.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/*
- * Sonar, open source software quality management tool.
- * Copyright (C) 2009 SonarSource SA
- * mailto:contact AT sonarsource DOT com
- *
- * Sonar is free software; you can redistribute it and/or
- * modify it under the terms of the GNU Lesser General Public
- * License as published by the Free Software Foundation; either
- * version 3 of the License, or (at your option) any later version.
- *
- * Sonar is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with Sonar; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
- */
-package org.sonar.api.database.daos;
-
-import org.sonar.api.database.model.RuleFailureModel;
-import org.sonar.api.database.model.Snapshot;
-import org.sonar.api.profiles.RulesProfile;
-import org.sonar.api.rules.ActiveRule;
-import org.sonar.api.rules.Rule;
-import org.sonar.api.rules.RuleParam;
-import org.sonar.api.rules.RulesCategory;
-
-import java.util.Collections;
-import java.util.List;
-
-/**
- * @deprecated since 2.3
- */
-@Deprecated
-public class RulesDao {
-
- private org.sonar.jpa.dao.RulesDao target;
-
- public RulesDao(org.sonar.jpa.dao.RulesDao target) {
- this.target = target;
- }
-
- public List<Rule> getRules() {
- return target.getRules();
- }
-
- public List<Rule> getRulesByPlugin(String pluginKey) {
- return target.getRulesByPlugin(pluginKey);
- }
-
- public List<Rule> getRulesByCategory(RulesCategory categ) {
- return Collections.emptyList();
- }
-
- public Rule getRuleByKey(String pluginKey, String ruleKey) {
- return target.getRuleByKey(pluginKey, ruleKey);
- }
-
- public Long countRules(List<String> plugins, String categoryName) {
- return target.countRules(plugins);
- }
-
- public List<RulesCategory> getCategories() {
- return Collections.emptyList();
- }
-
- public RulesCategory getCategory(String key) {
- return null;
- }
-
- public List<RuleParam> getRuleParams() {
- return target.getRuleParams();
- }
-
- public RuleParam getRuleParam(Rule rule, String paramKey) {
- return target.getRuleParam(rule, paramKey);
- }
-
- public void addActiveRulesToProfile(List<ActiveRule> activeRules, int profileId, String pluginKey) {
- target.addActiveRulesToProfile(activeRules, profileId, pluginKey);
- }
-
- public List<RuleFailureModel> getViolations(Snapshot snapshot) {
- return target.getViolations(snapshot);
- }
-
- public void synchronizeRuleOfActiveRule(ActiveRule activeRule, String pluginKey) {
- target.synchronizeRuleOfActiveRule(activeRule, pluginKey);
- }
-
- public boolean isRuleParamEqual(RuleParam ruleParam, RuleParam ruleParamFromDatabase, String ruleKey, String pluginKey) {
- return target.isRuleParamEqual(ruleParam, ruleParamFromDatabase, ruleKey, pluginKey);
- }
-
- public RulesProfile getProfileById(int profileId) {
- return target.getProfileById(profileId);
- }
-}