diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-22 16:25:17 +0100 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-02-22 16:25:17 +0100 |
commit | 6843aa6703697e7fd9073b26d1b8413170e7248f (patch) | |
tree | 8629965245d2156a594c1dc71a94bdbb902bdf69 /sonar-ws-client/src/main/java/org | |
parent | e8e5e0c895705af4f0b685b521e53128796769bd (diff) | |
download | sonarqube-6843aa6703697e7fd9073b26d1b8413170e7248f.tar.gz sonarqube-6843aa6703697e7fd9073b26d1b8413170e7248f.zip |
SONAR-2205 Web service /api/rules should provide configKey
Diffstat (limited to 'sonar-ws-client/src/main/java/org')
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/services/Rule.java | 17 | ||||
-rw-r--r-- | sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java | 1 |
2 files changed, 18 insertions, 0 deletions
diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Rule.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Rule.java index 9407dd776cf..d7b4d267b88 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Rule.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/services/Rule.java @@ -28,6 +28,7 @@ public class Rule extends Model { private String title = null; private String key = null; + private String configKey = null; private String repository = null; private String description = null; private String severity = null; @@ -52,6 +53,22 @@ public class Rule extends Model { return this; } + /** + * @since 2.7 + */ + public String getConfigKey() { + return configKey; + } + + /** + * @since 2.7 + */ + + public Rule setConfigKey(String s) { + this.configKey = s; + return this; + } + public String getRepository() { return repository; } diff --git a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java index 4d9c391f7d4..7c982e57ac1 100644 --- a/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java +++ b/sonar-ws-client/src/main/java/org/sonar/wsclient/unmarshallers/RuleUnmarshaller.java @@ -44,6 +44,7 @@ public class RuleUnmarshaller extends AbstractUnmarshaller<Rule> { rule.setTitle(utils.getString(json, "title")) .setKey(utils.getString(json, "key")) + .setConfigKey(utils.getString(json, "config_key")) .setRepository(utils.getString(json, "plugin")) .setDescription(utils.getString(json, "description")) .setSeverity(utils.getString(json, "priority")) |