aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api/src
diff options
context:
space:
mode:
Diffstat (limited to 'sonar-plugin-api/src')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java
index 0a4ba0394e8..739ec339918 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/issue/internal/DefaultIssue.java
@@ -91,6 +91,9 @@ public class DefaultIssue implements Issue {
// true if some fields have been changed since the previous scan
private boolean isChanged = false;
+ // true if notifications have to be sent
+ private boolean sendNotifications = false;
+
// Date when issue was loaded from db (only when isNew=false)
private Date selectedAt;
@@ -309,6 +312,15 @@ public class DefaultIssue implements Issue {
return this;
}
+ public boolean mustSendNotifications() {
+ return sendNotifications;
+ }
+
+ public DefaultIssue setSendNotifications(boolean b) {
+ sendNotifications = b;
+ return this;
+ }
+
@CheckForNull
public String attribute(String key) {
return attributes == null ? null : attributes.get(key);