diff options
author | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-12-21 15:21:13 +0100 |
---|---|---|
committer | Teryk Bellahsene <teryk.bellahsene@sonarsource.com> | 2015-12-21 15:21:38 +0100 |
commit | 612eca3d6a8df519a502b31b7cbe8f735f34decb (patch) | |
tree | 627e9b38f9fe830398a8d1d953d0c2f32ff64226 /sonar-ws | |
parent | d1e303f8412f61f426a6c746cc2ac10b584940bd (diff) | |
download | sonarqube-612eca3d6a8df519a502b31b7cbe8f735f34decb.tar.gz sonarqube-612eca3d6a8df519a502b31b7cbe8f735f34decb.zip |
SONAR-7127 Add language parameter to WS api/components/search
Diffstat (limited to 'sonar-ws')
3 files changed, 13 insertions, 0 deletions
diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java index 9467eb8adc9..b9739c4480e 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/ComponentsWsParameters.java @@ -30,6 +30,7 @@ public class ComponentsWsParameters { // parameters public static final String PARAM_QUALIFIERS = "qualifiers"; + public static final String PARAM_LANGUAGE = "language"; public static final String PARAM_BASE_COMPONENT_ID = "baseComponentId"; public static final String PARAM_BASE_COMPONENT_KEY = "baseComponentKey"; public static final String PARAM_STRATEGY = "strategy"; diff --git a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchWsRequest.java b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchWsRequest.java index f537c1d22ac..0d381aedb40 100644 --- a/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchWsRequest.java +++ b/sonar-ws/src/main/java/org/sonarqube/ws/client/component/SearchWsRequest.java @@ -31,6 +31,7 @@ public class SearchWsRequest { private Integer page; private Integer pageSize; private String query; + private String language; public List<String> getQualifiers() { return qualifiers; @@ -70,4 +71,14 @@ public class SearchWsRequest { this.query = query; return this; } + + @CheckForNull + public String getLanguage() { + return language; + } + + public SearchWsRequest setLanguage(@Nullable String language) { + this.language = language; + return this; + } } diff --git a/sonar-ws/src/main/protobuf/ws-components.proto b/sonar-ws/src/main/protobuf/ws-components.proto index aad40d8cab2..03ded8c9bb7 100644 --- a/sonar-ws/src/main/protobuf/ws-components.proto +++ b/sonar-ws/src/main/protobuf/ws-components.proto @@ -47,4 +47,5 @@ message Component { optional string description = 5; optional string qualifier = 6; optional string path = 7; + optional string language = 8; } |