diff options
author | Olivier Lamy <olamy@apache.org> | 2012-06-15 20:10:08 +0000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2012-06-15 20:10:08 +0000 |
commit | f2809251dc45f432779150caff01b77ac71bcbc8 (patch) | |
tree | 7044a11216e139a7f082273297ad4d37352bf92a /archiva-modules/archiva-web/archiva-rest/archiva-rest-api | |
parent | fc0cfdb2270f440a2679ab0227577233cafdeb9b (diff) | |
download | archiva-f2809251dc45f432779150caff01b77ac71bcbc8.tar.gz archiva-f2809251dc45f432779150caff01b77ac71bcbc8.zip |
restore backward comp for the struts webapp
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1350773 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-web/archiva-rest/archiva-rest-api')
-rw-r--r-- | archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Artifact.java | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Artifact.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Artifact.java index 9f975e46a..3baa0ce0a 100644 --- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Artifact.java +++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/Artifact.java @@ -151,6 +151,12 @@ public class Artifact */ private String path; + /** + * concat of artifactId+'-'+version+'.'+type + * @since 1.4-M3 + */ + private String id; + public Artifact() { @@ -405,6 +411,16 @@ public class Artifact this.path = path; } + public String getId() + { + return id; + } + + public void setId( String id ) + { + this.id = id; + } + @Override public String toString() { @@ -434,6 +450,7 @@ public class Artifact sb.append( ", size='" ).append( size ).append( '\'' ); sb.append( ", type='" ).append( type ).append( '\'' ); sb.append( ", path='" ).append( path ).append( '\'' ); + sb.append( ", id='" ).append( id ).append( '\'' ); sb.append( '}' ); return sb.toString(); } |