From a8e03360a82c53415fde082001a3f9dd3deff0b8 Mon Sep 17 00:00:00 2001 From: Julien HENRY Date: Wed, 22 Oct 2014 14:19:01 +0200 Subject: SONAR-5753 Populate columns *_uuid when creating resources --- .../java/org/sonar/api/resources/Resource.java | 26 +++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'sonar-plugin-api') 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 @@ -147,6 +149,20 @@ public abstract class Resource implements Serializable { this.key = s; } + /** + * @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 -- cgit v1.2.3