org.apache.archiva.metadata.repository
Interface MetadataResolver
- All Known Implementing Classes:
- DefaultMetadataResolver
public interface MetadataResolver
Method Summary |
Collection<ArtifactMetadata> |
resolveArtifacts(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
|
Collection<String> |
resolveNamespaces(RepositorySession session,
String repoId,
String namespace)
|
Collection<ProjectVersionReference> |
resolveProjectReferences(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
Retrieve project references from the metadata repository. |
Collection<String> |
resolveProjects(RepositorySession session,
String repoId,
String namespace)
|
ProjectVersionMetadata |
resolveProjectVersion(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
|
Collection<String> |
resolveProjectVersions(RepositorySession session,
String repoId,
String namespace,
String projectId)
|
Collection<String> |
resolveRootNamespaces(RepositorySession session,
String repoId)
|
resolveProjectVersion
ProjectVersionMetadata resolveProjectVersion(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
resolveProjectReferences
Collection<ProjectVersionReference> resolveProjectReferences(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
throws MetadataResolutionException
- Retrieve project references from the metadata repository. Note that this is not built into the content model for
a project version as a reference may be present (due to reverse-lookup of dependencies) before the actual
project is, and we want to avoid adding a stub model to the content repository.
- Parameters:
repoId
- the repository ID to look withinnamespace
- the namespace of the project to get references toprojectId
- the identifier of the project to get references toprojectVersion
- the version of the project to get references to
- Returns:
- a list of project references
- Throws:
MetadataResolutionException
resolveRootNamespaces
Collection<String> resolveRootNamespaces(RepositorySession session,
String repoId)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
resolveNamespaces
Collection<String> resolveNamespaces(RepositorySession session,
String repoId,
String namespace)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
resolveProjects
Collection<String> resolveProjects(RepositorySession session,
String repoId,
String namespace)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
resolveProjectVersions
Collection<String> resolveProjectVersions(RepositorySession session,
String repoId,
String namespace,
String projectId)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
resolveArtifacts
Collection<ArtifactMetadata> resolveArtifacts(RepositorySession session,
String repoId,
String namespace,
String projectId,
String projectVersion)
throws MetadataResolutionException
- Throws:
MetadataResolutionException
Copyright © 2006-2013 The Apache Software Foundation. All Rights Reserved.