]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-6717 Drop WS issues/do_action 882/head 5.5-M12
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 31 Mar 2016 14:29:42 +0000 (16:29 +0200)
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>
Thu, 31 Mar 2016 14:55:01 +0000 (16:55 +0200)
server/sonar-server/src/main/java/org/sonar/server/issue/ws/IssuesWs.java

index 48dfa38a99d25eb96b10ff9338fd67763815c584..f79064ed21128a5e15710ae08bc2aa21ea71a511 100644 (file)
@@ -24,10 +24,7 @@ import org.sonar.api.issue.DefaultTransitions;
 import org.sonar.api.rule.Severity;
 import org.sonar.api.rules.RuleType;
 import org.sonar.api.server.ws.RailsHandler;
-import org.sonar.api.server.ws.Request;
-import org.sonar.api.server.ws.Response;
 import org.sonar.api.server.ws.WebService;
-import org.sonar.server.ws.WsAction;
 
 public class IssuesWs implements WebService {
 
@@ -39,7 +36,6 @@ public class IssuesWs implements WebService {
   public static final String EDIT_COMMENT_ACTION = "edit_comment";
   public static final String TRANSITIONS_ACTION = "transitions";
   public static final String BULK_CHANGE_ACTION = "bulk_change";
-  public static final String DO_ACTION_ACTION = "do_action";
 
   private final IssuesWsAction[] actions;
 
@@ -66,7 +62,6 @@ public class IssuesWs implements WebService {
     defineEditCommentAction(controller);
     defineTransitionsAction(controller);
     defineBulkChangeAction(controller);
-    defineDoActionAction(controller);
   }
 
   private static void defineChangelogAction(NewController controller) {
@@ -189,34 +184,4 @@ public class IssuesWs implements WebService {
     RailsHandler.addFormatParam(action);
   }
 
-  private static void defineDoActionAction(NewController controller) {
-    new DoAction().define(controller);
-  }
-
-  private static class DoAction implements WsAction {
-    @Override
-    public void define(NewController context) {
-      WebService.NewAction action = context.createAction(DO_ACTION_ACTION)
-        .setDescription("Deprecated web service to do custom workflow transition on an issue. Custom issue are dropped in 5.5. This web service has no effect.")
-        .setSince("3.6")
-        .setDeprecatedSince("5.5")
-        .setHandler(this)
-        .setPost(true);
-
-      action.createParam("issue")
-        .setDescription("Key of the issue")
-        .setRequired(true)
-        .setExampleValue("5bccd6e8-f525-43a2-8d76-fcb13dde79ef");
-      action.createParam("actionKey")
-        .setDescription("Action to perform")
-        .setExampleValue("link-to-jira");
-      RailsHandler.addFormatParam(action);
-    }
-
-    @Override
-    public void handle(Request request, Response response) throws Exception {
-      response.noContent();
-    }
-  }
-
 }