1package org.apache.archiva.metadata.repository;
23/*4 * Licensed to the Apache Software Foundation (ASF) under one5 * or more contributor license agreements. See the NOTICE file6 * distributed with this work for additional information7 * regarding copyright ownership. The ASF licenses this file8 * to you under the Apache License, Version 2.0 (the9 * "License"); you may not use this file except in compliance10 * with the License. You may obtain a copy of the License at11 *12 * http://www.apache.org/licenses/LICENSE-2.013 *14 * Unless required by applicable law or agreed to in writing,15 * software distributed under the License is distributed on an16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY17 * KIND, either express or implied. See the License for the18 * specific language governing permissions and limitations19 * under the License.20 */2122import org.apache.archiva.metadata.model.ArtifactMetadata;
23import org.apache.archiva.metadata.model.ProjectVersionMetadata;
24import org.apache.archiva.metadata.model.ProjectVersionReference;
2526import java.util.Collection;
2728publicinterfaceMetadataResolver29 {
30ProjectVersionMetadata resolveProjectVersion( RepositorySession session, String repoId, String namespace,
31 String projectId, String projectVersion )
32throws MetadataResolutionException;
3334/**35 * Retrieve project references from the metadata repository. Note that this is not built into the content model for36 * a project version as a reference may be present (due to reverse-lookup of dependencies) before the actual37 * project is, and we want to avoid adding a stub model to the content repository.38 *39 * @param repoId the repository ID to look within40 * @param namespace the namespace of the project to get references to41 * @param projectId the identifier of the project to get references to42 * @param projectVersion the version of the project to get references to43 * @return a list of project references44 */45 Collection<ProjectVersionReference> resolveProjectReferences( RepositorySession session, String repoId,
46 String namespace, String projectId,
47 String projectVersion )
48throws MetadataResolutionException;
4950 Collection<String> resolveRootNamespaces( RepositorySession session, String repoId )
51throws MetadataResolutionException;
5253 Collection<String> resolveNamespaces( RepositorySession session, String repoId, String namespace )
54throws MetadataResolutionException;
5556 Collection<String> resolveProjects( RepositorySession session, String repoId, String namespace )
57throws MetadataResolutionException;
5859 Collection<String> resolveProjectVersions( RepositorySession session, String repoId, String namespace,
60 String projectId )
61throws MetadataResolutionException;
6263 Collection<ArtifactMetadata> resolveArtifacts( RepositorySession session, String repoId, String namespace,
64 String projectId, String projectVersion )
65throws MetadataResolutionException;
66 }