aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-ws/src/main/java/org/sonarqube/ws/client/views
diff options
context:
space:
mode:
authorLukasz Jarocki <lukasz.jarocki@sonarsource.com>2021-08-26 16:24:36 +0200
committersonartech <sonartech@sonarsource.com>2021-08-26 20:04:29 +0000
commit680aed78d5a58249ae56ca36b5f495bb579bce1a (patch)
treef0e4b70fdbf7019d8c1e50c0910f6403d60444ae /sonar-ws/src/main/java/org/sonarqube/ws/client/views
parent5e216710672e237ce18e43c0c8fe82faacaacd3b (diff)
downloadsonarqube-680aed78d5a58249ae56ca36b5f495bb579bce1a.tar.gz
sonarqube-680aed78d5a58249ae56ca36b5f495bb579bce1a.zip
SONAR-15313 drop endpoints from WebAPI deprecated since 7.X
Co-authored-by: Lukasz Jarocki <lukasz.jarocki@sonarsource.com> Co-authored-by: Philippe Perrin <philippe.perrin@sonarsource.com> Co-authored-by: MikeBirnstiehl <michael.birnstiehl@sonarsource.com>
Diffstat (limited to 'sonar-ws/src/main/java/org/sonarqube/ws/client/views')
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java19
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ModeRequest.java102
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java (renamed from sonar-ws/src/main/java/org/sonarqube/ws/client/views/RegexpRequest.java)28
-rw-r--r--sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java53
4 files changed, 23 insertions, 179 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
index b97a6d99b58..05c6bb4849e 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/CreateRequest.java
@@ -33,7 +33,6 @@ public class CreateRequest {
private String description;
private String key;
private String name;
- private String qualifier;
private String visibility;
/**
@@ -73,24 +72,6 @@ public class CreateRequest {
/**
* Possible values:
* <ul>
- * <li>"VW"</li>
- * <li>"APP"</li>
- * </ul>
- * @deprecated since 7.3
- */
- @Deprecated
- public CreateRequest setQualifier(String qualifier) {
- this.qualifier = qualifier;
- return this;
- }
-
- public String getQualifier() {
- return qualifier;
- }
-
- /**
- * Possible values:
- * <ul>
* <li>"private"</li>
* <li>"public"</li>
* </ul>
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ModeRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ModeRequest.java
deleted file mode 100644
index bd3593172d0..00000000000
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ModeRequest.java
+++ /dev/null
@@ -1,102 +0,0 @@
-/*
- * SonarQube
- * Copyright (C) 2009-2021 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 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/mode">Further information about this action online (including a response example)</a>
- * @since 2.6
- */
-@Generated("sonar-ws-generator")
-public class ModeRequest {
-
- private String key;
- private String measure;
- private String regexp;
- private String selectionMode;
- private String value;
-
- /**
- * This is a mandatory parameter.
- */
- public ModeRequest setKey(String key) {
- this.key = key;
- return this;
- }
-
- public String getKey() {
- return key;
- }
-
- /**
- */
- public ModeRequest setMeasure(String measure) {
- this.measure = measure;
- return this;
- }
-
- public String getMeasure() {
- return measure;
- }
-
- /**
- */
- public ModeRequest setRegexp(String regexp) {
- this.regexp = regexp;
- return this;
- }
-
- public String getRegexp() {
- return regexp;
- }
-
- /**
- * This is a mandatory parameter.
- * Possible values:
- * <ul>
- * <li>"MANUAL"</li>
- * <li>"REGEXP"</li>
- * <li>"MANUAL_MEASURE"</li>
- * <li>"REST"</li>
- * </ul>
- */
- public ModeRequest setSelectionMode(String selectionMode) {
- this.selectionMode = selectionMode;
- return this;
- }
-
- public String getSelectionMode() {
- return selectionMode;
- }
-
- /**
- */
- public ModeRequest setValue(String value) {
- this.value = value;
- return this;
- }
-
- public String getValue() {
- return value;
- }
-}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RegexpRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java
index 743090dc706..b0582ae231d 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/RegexpRequest.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/SetNoneModeRequest.java
@@ -24,36 +24,24 @@ 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/regexp">Further information about this action online (including a response example)</a>
- * @since 1.0
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/set_none_mode">Further information about this action online (including a response example)</a>
+ * @since 9.1
*/
@Generated("sonar-ws-generator")
-public class RegexpRequest {
+public class SetNoneModeRequest {
- private String key;
- private String regexp;
+ private String portfolio;
/**
* This is a mandatory parameter.
*/
- public RegexpRequest setKey(String key) {
- this.key = key;
+ public SetNoneModeRequest setPortfolio(String portfolio) {
+ this.portfolio = portfolio;
return this;
}
- public String getKey() {
- return key;
+ public String getPortfolio() {
+ return portfolio;
}
- /**
- * This is a mandatory parameter.
- */
- public RegexpRequest setRegexp(String regexp) {
- this.regexp = regexp;
- return this;
- }
-
- public String getRegexp() {
- return regexp;
- }
}
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
index 52ba65115e0..d81260983b8 100644
--- a/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
+++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/views/ViewsService.java
@@ -114,7 +114,6 @@ public class ViewsService extends BaseService {
.setParam("description", request.getDescription())
.setParam("key", request.getKey())
.setParam("name", request.getName())
- .setParam("qualifier", request.getQualifier())
.setParam("visibility", request.getVisibility())
.setMediaType(MediaTypes.JSON)
).content();
@@ -197,26 +196,6 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/mode">Further information about this action online (including a response example)</a>
- * @since 2.6
- * @deprecated since 7.4
- */
- public void mode(ModeRequest request) {
- call(
- new PostRequest(path("mode"))
- .setParam("key", request.getKey())
- .setParam("measure", request.getMeasure())
- .setParam("regexp", request.getRegexp())
- .setParam("selectionMode", request.getSelectionMode())
- .setParam("value", request.getValue())
- .setMediaType(MediaTypes.JSON)
- ).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/move">Further information about this action online (including a response example)</a>
* @since 1.0
*/
@@ -282,23 +261,6 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
- * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/regexp">Further information about this action online (including a response example)</a>
- * @since 1.0
- * @deprecated since 7.4
- */
- public void regexp(RegexpRequest request) {
- call(
- new PostRequest(path("regexp"))
- .setParam("key", request.getKey())
- .setParam("regexp", request.getRegexp())
- .setMediaType(MediaTypes.JSON)
- ).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/remove_project">Further information about this action online (including a response example)</a>
* @since 1.0
*/
@@ -365,6 +327,21 @@ public class ViewsService extends BaseService {
*
* This is part of the internal API.
* This is a POST request.
+ * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/views/set_none_mode">Further information about this action online (including a response example)</a>
+ * @since 9.1
+ */
+ public void setNoneMode(SetNoneModeRequest request) {
+ call(
+ new PostRequest(path("set_none_mode"))
+ .setParam("portfolio", request.getPortfolio())
+ .setMediaType(MediaTypes.JSON)
+ ).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/set_remaining_projects_mode">Further information about this action online (including a response example)</a>
* @since 7.4
*/