aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-05-18 15:42:14 +0200
committerTeryk Bellahsene <teryk.bellahsene@sonarsource.com>2016-05-19 12:50:01 +0200
commit788fa6c2eeca7df4ba653c12e7e33224aff9a51f (patch)
tree8ef535c69a21b4c405a6d2b4da94cf39c3b91834 /sonar-plugin-api
parent7630d660953cba8eee725a6a46c89dbf658bf1a0 (diff)
downloadsonarqube-788fa6c2eeca7df4ba653c12e7e33224aff9a51f.tar.gz
sonarqube-788fa6c2eeca7df4ba653c12e7e33224aff9a51f.zip
SONAR-7578 Filter issues by leak period and by file, directory or module
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java36
1 files changed, 32 insertions, 4 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
index e42473d0337..0e1eba6c763 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java
@@ -264,8 +264,19 @@ public interface WebService extends Definable<WebService.Context> {
return this;
}
- public NewAction setDescription(@Nullable String s) {
- this.description = s;
+ /**
+ * Used in Orchestrator
+ */
+ public NewAction setDescription(@Nullable String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * @since 5.6
+ */
+ public NewAction setDescription(@Nullable String description, Object... descriptionArgument) {
+ this.description = description == null ? null : String.format(description, descriptionArgument);
return this;
}
@@ -274,6 +285,9 @@ public interface WebService extends Definable<WebService.Context> {
return this;
}
+ /**
+ * @since 5.3
+ */
public NewAction setDeprecatedSince(@Nullable String deprecatedSince) {
this.deprecatedSince = deprecatedSince;
return this;
@@ -592,11 +606,17 @@ public interface WebService extends Definable<WebService.Context> {
this.key = key;
}
+ /**
+ * @since 5.3
+ */
public NewParam setSince(@Nullable String since) {
this.since = since;
return this;
}
+ /**
+ * @since 5.3
+ */
public NewParam setDeprecatedSince(@Nullable String deprecatedSince) {
this.deprecatedSince = deprecatedSince;
return this;
@@ -610,8 +630,16 @@ public interface WebService extends Definable<WebService.Context> {
return this;
}
- public NewParam setDescription(@Nullable String s) {
- this.description = s;
+ public NewParam setDescription(@Nullable String description) {
+ this.description = description;
+ return this;
+ }
+
+ /**
+ * @since 5.6
+ */
+ public NewParam setDescription(@Nullable String description, Object... descriptionArgument) {
+ this.description = description == null ? null : String.format(description, descriptionArgument);
return this;
}