1 package org.apache.archiva.metadata.repository;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import org.apache.archiva.metadata.model.ArtifactMetadata;
23 import org.apache.archiva.metadata.model.ProjectVersionMetadata;
24 import org.apache.archiva.metadata.model.ProjectVersionReference;
25
26 import java.util.Collection;
27
28 public interface MetadataResolver
29 {
30 ProjectVersionMetadata resolveProjectVersion( RepositorySession session, String repoId, String namespace,
31 String projectId, String projectVersion )
32 throws MetadataResolutionException;
33
34
35
36
37
38
39
40
41
42
43
44
45 Collection<ProjectVersionReference> resolveProjectReferences( RepositorySession session, String repoId,
46 String namespace, String projectId,
47 String projectVersion )
48 throws MetadataResolutionException;
49
50 Collection<String> resolveRootNamespaces( RepositorySession session, String repoId )
51 throws MetadataResolutionException;
52
53 Collection<String> resolveNamespaces( RepositorySession session, String repoId, String namespace )
54 throws MetadataResolutionException;
55
56 Collection<String> resolveProjects( RepositorySession session, String repoId, String namespace )
57 throws MetadataResolutionException;
58
59 Collection<String> resolveProjectVersions( RepositorySession session, String repoId, String namespace,
60 String projectId )
61 throws MetadataResolutionException;
62
63 Collection<ArtifactMetadata> resolveArtifacts( RepositorySession session, String repoId, String namespace,
64 String projectId, String projectVersion )
65 throws MetadataResolutionException;
66 }