diff options
author | Brett Porter <brett@apache.org> | 2009-11-27 20:50:34 +0000 |
---|---|---|
committer | Brett Porter <brett@apache.org> | 2009-11-27 20:50:34 +0000 |
commit | 2721d7bf8d98505f9961d0d741b3bbc396497f2b (patch) | |
tree | 05bae765b4a7b7f3773c72c4a1ca7679f0332710 /archiva-modules/metadata/metadata-repository-api | |
parent | 043a336aa51e38a72cf297e9359c174cab8a839c (diff) | |
download | archiva-2721d7bf8d98505f9961d0d741b3bbc396497f2b.tar.gz archiva-2721d7bf8d98505f9961d0d741b3bbc396497f2b.zip |
[MRM-1283] moved browseArtifact() functionality over to metadata repository and remove repositoryBrowsing component
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@885001 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-repository-api')
2 files changed, 9 insertions, 0 deletions
diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java index 17b237455..8e54a6ea2 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/DefaultMetadataResolver.java @@ -122,4 +122,11 @@ public class DefaultMetadataResolver // not passed to the storage mechanism as resolving references would require iterating all projects return metadataRepository.getProjects( repoId, namespace ); } + + public Collection<String> getProjectVersions( String repoId, String namespace, String projectId ) + { + // TODO: is this assumption correct? could a storage mech. actually know all references in a non-Maven scenario? + // not passed to the storage mechanism as resolving references would require iterating all versions + return metadataRepository.getProjectVersions( repoId, namespace, projectId ); + } } diff --git a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java index 2a2600ae0..2f957c813 100644 --- a/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java +++ b/archiva-modules/metadata/metadata-repository-api/src/main/java/org/apache/archiva/metadata/repository/MetadataResolver.java @@ -53,4 +53,6 @@ public interface MetadataResolver Collection<String> getNamespaces( String repoId, String namespace ); Collection<String> getProjects( String repoId, String namespace ); + + Collection<String> getProjectVersions( String repoId, String namespace, String projectId ); } |