From 32892cadf93a903df4fea8e61518c04c6bd69ad5 Mon Sep 17 00:00:00 2001 From: OrlovAlexander <35396155+OrlovAlexander85@users.noreply.github.com> Date: Fri, 31 May 2024 10:05:52 +0200 Subject: SONAR-22224 update api activate_rule, activate_rules --- .../org/sonar/server/qualityprofile/ActiveRuleChange.java | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'server/sonar-server-common') 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 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(); } } -- cgit v1.2.3