aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-02-02 09:16:14 +0100
committersimonbrandhof <simon.brandhof@gmail.com>2011-02-02 09:16:14 +0100
commitc75f06d423d330fcd85ffcca92a58dfb5db8e77b (patch)
treeb7419eb8a31d1f15504b0f3d2fe08f1b33d9597f /sonar-plugin-api
parent4c4af803b71cabb8fabd7ae142bb6a6efd9bdbd9 (diff)
parentaf8cbb165e10a9bcd5ccef57ec7813645bfaf5d4 (diff)
downloadsonarqube-c75f06d423d330fcd85ffcca92a58dfb5db8e77b.tar.gz
sonarqube-c75f06d423d330fcd85ffcca92a58dfb5db8e77b.zip
Merge branch 'SONAR-2094'
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java15
1 files changed, 13 insertions, 2 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
index 6a50730d308..fbf2d2bea04 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/profiles/RulesProfile.java
@@ -29,11 +29,10 @@ import org.sonar.api.rules.ActiveRule;
import org.sonar.api.rules.Rule;
import org.sonar.api.rules.RulePriority;
+import javax.persistence.*;
import java.util.ArrayList;
import java.util.List;
-import javax.persistence.*;
-
/**
* This class is badly named. It should be "QualityProfile". Indeed it does not relate only to rules but to metric thresholds too.
*/
@@ -70,6 +69,9 @@ public class RulesProfile implements Cloneable {
@Column(name = "provided", updatable = true, nullable = false)
private Boolean provided = Boolean.FALSE;
+ @Column(name = "enabled", updatable = true, nullable = false)
+ private boolean enabled = true;
+
@Column(name = "language", updatable = true, nullable = false)
private String language;
@@ -177,6 +179,15 @@ public class RulesProfile implements Cloneable {
this.provided = b;
}
+ public boolean isEnabled() {
+ return enabled;
+ }
+
+ public RulesProfile setEnabled(boolean b) {
+ this.enabled = b;
+ return this;
+ }
+
/**
* @return the profile language
*/