1 package org.apache.archiva.metadata.repository.storage;
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
24 import java.io.File;
25
26 public interface RepositoryPathTranslator
27 {
28 char PATH_SEPARATOR = '/';
29
30 String toPath( String namespace, String projectId, String projectVersion, String filename );
31
32 String toPath( String namespace, String projectId );
33
34 File toFile( File basedir, String namespace, String projectId, String projectVersion, String filename );
35
36 File toFile( File basedir, String namespace, String projectId );
37
38 File toFile( File basedir, String namespace );
39
40 File toFile( File basedir, String namespace, String projectId, String projectVersion );
41
42 ArtifactMetadata getArtifactForPath( String repoId, String relativePath );
43
44 ArtifactMetadata getArtifactFromId( String repoId, String namespace, String projectId, String projectVersion,
45 String id );
46 }