]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-17705 Remove deprecated endpoints: AddLocalViewAction, LocalViewAction, AddSubV...
authorLéo Geoffroy <99647462+leo-geoffroy-sonarsource@users.noreply.github.com>
Wed, 25 Jan 2023 15:56:09 +0000 (16:56 +0100)
committersonartech <sonartech@sonarsource.com>
Fri, 3 Feb 2023 14:26:00 +0000 (14:26 +0000)
server/sonar-db-dao/src/main/java/org/sonar/db/issue/IssueDao.java
sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java [deleted file]
sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java [deleted file]
sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java [deleted file]
sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java

index de6cd440a312b514fc613bedcc36a1ceb31cf760..e6ad7029e573000ff560394330366a3a134d7a20 100644 (file)
@@ -27,7 +27,6 @@ import org.sonar.db.Dao;
 import org.sonar.db.DbSession;
 import org.sonar.db.Pagination;
 import org.sonar.db.RowNotFoundException;
-import org.sonar.db.WildcardPosition;
 import org.sonar.db.component.ComponentDto;
 
 import static org.sonar.db.DaoUtils.buildLikeValue;
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddLocalViewRequest.java
deleted file mode 100644 (file)
index fa37b84..0000000
+++ /dev/null
@@ -1,60 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program 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.
- *
- * This program 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.sonarqube.ws.client.views;
-
-import java.util.List;
-import javax.annotation.Generated;
-
-/**
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_local_view">Further information about this action online (including a response example)</a>
- * @since 1.0
- */
-@Generated("sonar-ws-generator")
-public class AddLocalViewRequest {
-
-  private String key;
-  private String refKey;
-
-  /**
-   * This is a mandatory parameter.
-   */
-  public AddLocalViewRequest setKey(String key) {
-    this.key = key;
-    return this;
-  }
-
-  public String getKey() {
-    return key;
-  }
-
-  /**
-   * This is a mandatory parameter.
-   */
-  public AddLocalViewRequest setRefKey(String refKey) {
-    this.refKey = refKey;
-    return this;
-  }
-
-  public String getRefKey() {
-    return refKey;
-  }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/AddSubViewRequest.java
deleted file mode 100644 (file)
index 9ac6921..0000000
+++ /dev/null
@@ -1,84 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program 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.
- *
- * This program 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.sonarqube.ws.client.views;
-
-import java.util.List;
-import javax.annotation.Generated;
-
-/**
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_sub_view">Further information about this action online (including a response example)</a>
- * @since 1.0
- */
-@Generated("sonar-ws-generator")
-public class AddSubViewRequest {
-
-  private String description;
-  private String key;
-  private String name;
-  private String subKey;
-
-  /**
-   */
-  public AddSubViewRequest setDescription(String description) {
-    this.description = description;
-    return this;
-  }
-
-  public String getDescription() {
-    return description;
-  }
-
-  /**
-   * This is a mandatory parameter.
-   */
-  public AddSubViewRequest setKey(String key) {
-    this.key = key;
-    return this;
-  }
-
-  public String getKey() {
-    return key;
-  }
-
-  /**
-   * This is a mandatory parameter.
-   */
-  public AddSubViewRequest setName(String name) {
-    this.name = name;
-    return this;
-  }
-
-  public String getName() {
-    return name;
-  }
-
-  /**
-   */
-  public AddSubViewRequest setSubKey(String subKey) {
-    this.subKey = subKey;
-    return this;
-  }
-
-  public String getSubKey() {
-    return subKey;
-  }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/LocalViewsRequest.java
deleted file mode 100644 (file)
index 72375b9..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2023 SonarSource SA
- * mailto:info AT sonarsource DOT com
- *
- * This program 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.
- *
- * This program 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.sonarqube.ws.client.views;
-
-import java.util.List;
-import javax.annotation.Generated;
-
-/**
- * This is part of the internal API.
- * This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/local_views">Further information about this action online (including a response example)</a>
- * @since 1.0
- */
-@Generated("sonar-ws-generator")
-public class LocalViewsRequest {
-
-  private String key;
-
-  /**
-   * This is a mandatory parameter.
-   */
-  public LocalViewsRequest setKey(String key) {
-    this.key = key;
-    return this;
-  }
-
-  public String getKey() {
-    return key;
-  }
-}
index 7dd41a0cc63a47d30a1c99eb4d14dc188346b2a3..eb74613c6542e761e3a42afd490ce90ff6c6980f 100644 (file)
@@ -53,24 +53,6 @@ public class ViewsService extends BaseService {
       ).content();
   }
 
-  /**
-   *
-   * This is part of the internal API.
-   * This is a POST request.
-   * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_local_view">Further information about this action online (including a response example)</a>
-   * @since 1.0
-   * @deprecated since 9.3
-   */
-  @Deprecated
-  public void addLocalView(AddLocalViewRequest request) {
-    call(
-      new PostRequest(path("add_local_view"))
-        .setParam("key", request.getKey())
-        .setParam("ref_key", request.getRefKey())
-        .setMediaType(MediaTypes.JSON)
-      ).content();
-  }
-
   /**
    *
    * This is part of the internal API.
@@ -120,26 +102,6 @@ public class ViewsService extends BaseService {
       ).content();
   }
 
-  /**
-   *
-   * This is part of the internal API.
-   * This is a POST request.
-   * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/add_sub_view">Further information about this action online (including a response example)</a>
-   * @since 1.0
-   * @deprecated since 9.3
-   */
-  @Deprecated
-  public void addSubView(AddSubViewRequest request) {
-    call(
-      new PostRequest(path("add_sub_view"))
-        .setParam("description", request.getDescription())
-        .setParam("key", request.getKey())
-        .setParam("name", request.getName())
-        .setParam("subKey", request.getSubKey())
-        .setMediaType(MediaTypes.JSON)
-      ).content();
-  }
-
   /**
    *
    * This is part of the internal API.
@@ -236,23 +198,6 @@ public class ViewsService extends BaseService {
       ).content();
   }
 
-  /**
-   *
-   * This is part of the internal API.
-   * This is a GET request.
-   * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/local_views">Further information about this action online (including a response example)</a>
-   * @since 1.0
-   * @deprecated since 9.3
-   */
-  @Deprecated
-  public String localViews(LocalViewsRequest request) {
-    return call(
-      new GetRequest(path("local_views"))
-        .setParam("key", request.getKey())
-        .setMediaType(MediaTypes.JSON)
-      ).content();
-  }
-
   /**
    *
    * This is part of the internal API.