aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorEvgeny Mandrikov <mandrikov@gmail.com>2011-07-20 19:09:57 +0400
committerEvgeny Mandrikov <mandrikov@gmail.com>2011-07-20 23:18:56 +0400
commit04a940ca3a7b57020bca2b529d2e04c3437ae77e (patch)
tree8f6aa187ee08247d9124102391d3f725641c0b99 /sonar-plugin-api
parent98f009fed3aaede468f70bb2d848e31e5e54b7d2 (diff)
downloadsonarqube-04a940ca3a7b57020bca2b529d2e04c3437ae77e.tar.gz
sonarqube-04a940ca3a7b57020bca2b529d2e04c3437ae77e.zip
SONAR-2599 First draft of settings for notifications in user profile
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationChannel.java5
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationDispatcher.java5
2 files changed, 10 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationChannel.java b/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationChannel.java
index 5be11491963..cbdf9cb0bf3 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationChannel.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationChannel.java
@@ -43,4 +43,9 @@ public abstract class NotificationChannel implements ServerExtension {
public abstract void deliver(Notification notification, String username);
+ @Override
+ public String toString() {
+ return getKey();
+ }
+
}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationDispatcher.java b/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationDispatcher.java
index 6886725e596..237fe6a37cf 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationDispatcher.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/notifications/NotificationDispatcher.java
@@ -52,4 +52,9 @@ public abstract class NotificationDispatcher implements ServerExtension {
*/
public abstract void dispatch(Notification notification, Context context);
+ @Override
+ public String toString() {
+ return getKey();
+ }
+
}