aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-server-common
diff options
context:
space:
mode:
authorOrlovAlexander <35396155+OrlovAlexander85@users.noreply.github.com>2024-05-31 10:05:52 +0200
committersonartech <sonartech@sonarsource.com>2024-06-03 20:02:58 +0000
commit32892cadf93a903df4fea8e61518c04c6bd69ad5 (patch)
treebf61111a5c0e9fcd7bbd23443471a6456f97c60e /server/sonar-server-common
parent5f96967d771ff120340a5562acddbe03bcb61185 (diff)
downloadsonarqube-32892cadf93a903df4fea8e61518c04c6bd69ad5.tar.gz
sonarqube-32892cadf93a903df4fea8e61518c04c6bd69ad5.zip
SONAR-22224 update api activate_rule, activate_rules
Diffstat (limited to 'server/sonar-server-common')
-rw-r--r--server/sonar-server-common/src/main/java/org/sonar/server/qualityprofile/ActiveRuleChange.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/sonar-server-common/src/main/java/org/sonar/server/qualityprofile/ActiveRuleChange.java b/server/sonar-server-common/src/main/java/org/sonar/server/qualityprofile/ActiveRuleChange.java
index f91396cf486..65412f21a66 100644
--- a/server/sonar-server-common/src/main/java/org/sonar/server/qualityprofile/ActiveRuleChange.java
+++ b/server/sonar-server-common/src/main/java/org/sonar/server/qualityprofile/ActiveRuleChange.java
@@ -42,6 +42,7 @@ public class ActiveRuleChange {
private final ActiveRuleKey key;
private final String ruleUuid;
private String severity = null;
+ private Boolean prioritizedRule = null;
private ActiveRuleInheritance inheritance = null;
private final Map<String, String> parameters = new HashMap<>();
@@ -80,6 +81,16 @@ public class ActiveRuleChange {
return this;
}
+ public ActiveRuleChange setPrioritizedRule(@Nullable Boolean prioritizedRule){
+ this.prioritizedRule = prioritizedRule;
+ return this;
+ }
+
+ @CheckForNull
+ public Boolean isPrioritizedRule(){
+ return prioritizedRule;
+ }
+
public ActiveRuleChange setInheritance(@Nullable ActiveRuleInheritance i) {
this.inheritance = i;
return this;
@@ -147,6 +158,7 @@ public class ActiveRuleChange {
.add("severity", severity)
.add("inheritance", inheritance)
.add("parameters", parameters)
+ .add("prioritizedRule", prioritizedRule)
.toString();
}
}