diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-20 16:13:40 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2016-01-20 16:13:40 +0100 |
commit | 35f2b685c10d718a6a510a7ae233b32a467a3ef3 (patch) | |
tree | 15c232a8c387ca833a280b33b3af3a91756a4449 /sonar-plugin-api | |
parent | 1d8bdc592ad2f615c1fc7d358327fb77171baec3 (diff) | |
download | sonarqube-35f2b685c10d718a6a510a7ae233b32a467a3ef3.tar.gz sonarqube-35f2b685c10d718a6a510a7ae233b32a467a3ef3.zip |
SONAR-7205 WS api/users/search deprecate 'f' field
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r-- | sonar-plugin-api/src/main/java/org/sonar/api/server/ws/WebService.java | 8 |
1 files changed, 6 insertions, 2 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 eb65e536154..a82771df076 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 @@ -387,10 +387,14 @@ public interface WebService extends Definable<WebService.Context> { * used to restrict the number of fields returned in JSON response. */ public NewAction addFieldsParam(Collection<?> possibleValues) { - createParam(Param.FIELDS) + createFieldsParam(possibleValues); + return this; + } + + public NewParam createFieldsParam(Collection<?> possibleValues) { + return createParam(Param.FIELDS) .setDescription("Comma-separated list of the fields to be returned in response. All the fields are returned by default.") .setPossibleValues(possibleValues); - return this; } /**$ |