diff options
Diffstat (limited to 'sonar-ws/src/main')
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; } |