aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorJulien HENRY <julien.henry@sonarsource.com>2014-10-22 14:19:01 +0200
committerJulien HENRY <julien.henry@sonarsource.com>2014-10-22 14:21:29 +0200
commita8e03360a82c53415fde082001a3f9dd3deff0b8 (patch)
tree78ebacaa8e0c804a47dcf64d4ba75a8908273de7 /sonar-plugin-api
parentfbdbe81f4631378fd7dde42d516cf2adce465f08 (diff)
downloadsonarqube-a8e03360a82c53415fde082001a3f9dd3deff0b8.tar.gz
sonarqube-a8e03360a82c53415fde082001a3f9dd3deff0b8.zip
SONAR-5753 Populate columns *_uuid when creating resources
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java26
1 files changed, 21 insertions, 5 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
index 89101ba6aa1..dd9e05b1155 100644
--- a/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/resources/Resource.java
@@ -123,15 +123,17 @@ public abstract class Resource implements Serializable {
@Deprecated
public static final String QUALIFIER_UNIT_TEST_CLASS = Qualifiers.UNIT_TEST_FILE;
- private Integer id = null;
+ private Integer id;
- private String key = null;
+ private String key;
- private String deprecatedKey = null;
+ private String uuid;
- private String path = null;
+ private String deprecatedKey;
- private String effectiveKey = null;
+ private String path;
+
+ private String effectiveKey;
/**
* @return the resource key
@@ -148,6 +150,20 @@ public abstract class Resource implements Serializable {
}
/**
+ * @since 5.0
+ */
+ public final String getUuid() {
+ return uuid;
+ }
+
+ /**
+ * Internal use only
+ */
+ public void setUuid(String s) {
+ this.uuid = s;
+ }
+
+ /**
* @return the resource deprecated key. Should not be used except to deal with backward compatibility.
* @since 4.2
*/