summaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-11-27 23:39:42 +0000
committerBrett Porter <brett@apache.org>2009-11-27 23:39:42 +0000
commitc79221c9974357e953e8f670274eba8377b18b96 (patch)
treed0823660eb69193b9c360510ca62c2e376b231c8 /archiva-modules/metadata/metadata-model/src
parentbf4af277484b7bb2eac196211fe851535e8197ce (diff)
downloadarchiva-c79221c9974357e953e8f670274eba8377b18b96.tar.gz
archiva-c79221c9974357e953e8f670274eba8377b18b96.zip
[MRM-1283] remove legacy model intermediatary
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@885051 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java18
1 files changed, 14 insertions, 4 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
index 5e4626f94..f6a2bfb95 100644
--- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
@@ -56,6 +56,11 @@ public class ProjectVersionMetadata
return id;
}
+ public String getVersion()
+ {
+ return id;
+ }
+
public void setId( String id )
{
this.id = id;
@@ -146,9 +151,9 @@ public class ProjectVersionMetadata
this.licenses.add( license );
}
- public void addFacet( ProjectVersionFacet mavenProjectFacet )
+ public void addFacet( ProjectVersionFacet projectVersionFacet )
{
- this.facets.put( mavenProjectFacet.getFacetId(), mavenProjectFacet );
+ this.facets.put( projectVersionFacet.getFacetId(), projectVersionFacet );
}
public ProjectVersionFacet getFacet( String facetId )
@@ -156,12 +161,17 @@ public class ProjectVersionMetadata
return this.facets.get( facetId );
}
- public Collection<ProjectVersionFacet> getAllFacets()
+ public Map<String, ProjectVersionFacet> getFacets()
+ {
+ return facets;
+ }
+
+ public Collection<ProjectVersionFacet> getFacetList()
{
return this.facets.values();
}
- public Collection<String> getAllFacetIds()
+ public Collection<String> getFacetIds()
{
return this.facets.keySet();
}