]> source.dussan.org Git - sonarqube.git/commitdiff
Introduce WsAction interface for WsActions in server module
authorJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 3 Apr 2015 07:25:42 +0000 (09:25 +0200)
committerJean-Baptiste Lievremont <jean-baptiste.lievremont@sonarsource.com>
Fri, 3 Apr 2015 07:25:42 +0000 (09:25 +0200)
server/sonar-server/src/main/java/org/sonar/server/dashboard/ws/DashboardsAction.java
server/sonar-server/src/main/java/org/sonar/server/issue/ws/BaseIssuesWsAction.java
server/sonar-server/src/main/java/org/sonar/server/platform/ws/SystemWsAction.java
server/sonar-server/src/main/java/org/sonar/server/qualityprofile/ws/BaseQProfileWsAction.java
server/sonar-server/src/main/java/org/sonar/server/rule/ws/RulesAction.java
server/sonar-server/src/main/java/org/sonar/server/source/ws/SourcesAction.java
server/sonar-server/src/main/java/org/sonar/server/ws/WsAction.java [new file with mode: 0644]

index e14ccc782cbad06d3dddee5399cba6b75fe38dc9..f49cb281301439ba7a90773dedabbe1a8815b859 100644 (file)
  */
 package org.sonar.server.dashboard.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
-public interface DashboardsAction extends RequestHandler, Definable<WebService.NewController> {
+public interface DashboardsAction extends WsAction {
 
   // Marker interface
 
index 6b601b9a1923a1672452cfc42bf6e3e78e1aa680..60fa19cf5918d75318ab9e6388df2e395063ff3f 100644 (file)
  */
 package org.sonar.server.issue.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
-interface BaseIssuesWsAction extends RequestHandler, Definable<WebService.NewController> {
+interface BaseIssuesWsAction extends WsAction {
 
   // Marker interface
 
index c78a3d7651ebcab982924ccccbffe1b81622ff49..0e3cb720195ec8a222f0c8f4eb4f6fe8bd3ddb8d 100644 (file)
 
 package org.sonar.server.platform.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
-public interface SystemWsAction extends RequestHandler, Definable<WebService.NewController> {
+public interface SystemWsAction extends WsAction {
 
   // Marker interface
 }
index 54c4e1a210fa87b6cf155ab75b243f267670a759..68a1d96e33ddb41b478a821320195338045fb18e 100644 (file)
  */
 package org.sonar.server.qualityprofile.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
 /**
  * Marker interface for quality profile related web service end points
  */
-public interface BaseQProfileWsAction extends RequestHandler, Definable<WebService.NewController> {
+public interface BaseQProfileWsAction extends WsAction {
 
   // Marker interface
 }
index 6d612f247fa715918bd2af9577316470a62ea601..e6302ed4b585afd6d1f9568562dc7e7a49bbb631 100644 (file)
  */
 package org.sonar.server.rule.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
 /**
  * Marker interface for coding rule related actions
  *
  */
-interface RulesAction extends RequestHandler, Definable<WebService.NewController> {
+interface RulesAction extends WsAction {
 
   // Marker interface
 }
index 4a2de04d3672c7eb6d4488c92c7e49d3b4e1c4af..3db6f99e0c4935a44b6f3d949db5cb3772796563 100644 (file)
 
 package org.sonar.server.source.ws;
 
-import org.sonar.api.server.ws.Definable;
-import org.sonar.api.server.ws.RequestHandler;
-import org.sonar.api.server.ws.WebService;
+import org.sonar.server.ws.WsAction;
 
-public interface SourcesAction extends RequestHandler, Definable<WebService.NewController> {
+public interface SourcesAction extends WsAction {
 
   // Marker interface
 }
diff --git a/server/sonar-server/src/main/java/org/sonar/server/ws/WsAction.java b/server/sonar-server/src/main/java/org/sonar/server/ws/WsAction.java
new file mode 100644 (file)
index 0000000..bb5aff5
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * SonarQube, open source software quality management tool.
+ * Copyright (C) 2008-2014 SonarSource
+ * mailto:contact AT sonarsource DOT com
+ *
+ * SonarQube is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * SonarQube is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
+ */
+package org.sonar.server.ws;
+
+import org.sonar.api.server.ws.Definable;
+import org.sonar.api.server.ws.RequestHandler;
+import org.sonar.api.server.ws.WebService;
+
+/**
+ * Since 5.2, this interface is the base for Web Service marker interfaces
+ */
+public interface WsAction extends RequestHandler, Definable<WebService.NewController> {
+
+  // Marker interface
+}