aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorFabrice Bellingard <bellingard@gmail.com>2012-05-09 16:45:38 +0200
committerFabrice Bellingard <bellingard@gmail.com>2012-05-14 15:11:00 +0200
commite9475e56b36eee4b79b8b73708281426af366416 (patch)
treecc91e8c2608f2102a21aa2cab197efaba92ccf66 /sonar-plugin-api
parentf1bb3dd2a87aea499f550eee4b0f37412f91ab53 (diff)
downloadsonarqube-e9475e56b36eee4b79b8b73708281426af366416.tar.gz
sonarqube-e9475e56b36eee4b79b8b73708281426af366416.zip
SONAR-2541 Add extension point LinkReviewAction
- Draft of API - Add the review_data table - Link all this with the Ruby side - Allow to call the action from the Web UI
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/reviews/LinkReviewAction.java11
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/reviews/ReviewAction.java20
2 files changed, 31 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/reviews/LinkReviewAction.java b/sonar-plugin-api/src/main/java/org/sonar/api/reviews/LinkReviewAction.java
new file mode 100644
index 00000000000..823012c157e
--- /dev/null
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/reviews/LinkReviewAction.java
@@ -0,0 +1,11 @@
+package org.sonar.api.reviews;
+
+import com.google.common.annotations.Beta;
+
+/**
+ * @since 3.1
+ */
+@Beta
+public interface LinkReviewAction extends ReviewAction {
+
+}
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/reviews/ReviewAction.java b/sonar-plugin-api/src/main/java/org/sonar/api/reviews/ReviewAction.java
new file mode 100644
index 00000000000..d6f49ab6968
--- /dev/null
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/reviews/ReviewAction.java
@@ -0,0 +1,20 @@
+package org.sonar.api.reviews;
+
+import com.google.common.annotations.Beta;
+import org.sonar.api.ServerExtension;
+
+import java.util.Map;
+
+/**
+ * @since 3.1
+ */
+@Beta
+public interface ReviewAction extends ServerExtension {
+
+ String getId();
+
+ String getName();
+
+ void execute(Map<String, String> reviewContext);
+
+}