@Service(value="repositoryPathTranslator#maven2") public class Maven2RepositoryPathTranslator extends Object implements org.apache.archiva.metadata.repository.storage.RepositoryPathTranslator
| Constructor and Description |
|---|
Maven2RepositoryPathTranslator() |
Maven2RepositoryPathTranslator(List<ArtifactMappingProvider> artifactMappingProviders) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.archiva.metadata.model.ArtifactMetadata |
getArtifactForPath(String repoId,
String relativePath) |
org.apache.archiva.metadata.model.ArtifactMetadata |
getArtifactFromId(String repoId,
String namespace,
String projectId,
String projectVersion,
String id) |
void |
initialize() |
boolean |
isArtifactIdValidMavenPlugin(String artifactId) |
File |
toFile(File basedir,
String namespace) |
File |
toFile(File basedir,
String namespace,
String projectId) |
File |
toFile(File basedir,
String namespace,
String projectId,
String projectVersion) |
File |
toFile(File basedir,
String namespace,
String projectId,
String projectVersion,
String filename) |
String |
toPath(String namespace) |
String |
toPath(String namespace,
String projectId) |
String |
toPath(String namespace,
String projectId,
String projectVersion) |
String |
toPath(String namespace,
String projectId,
String projectVersion,
String filename) |
public Maven2RepositoryPathTranslator()
public Maven2RepositoryPathTranslator(List<ArtifactMappingProvider> artifactMappingProviders)
@PostConstruct public void initialize()
public File toFile(File basedir, String namespace, String projectId, String projectVersion, String filename)
toFile in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic File toFile(File basedir, String namespace, String projectId, String projectVersion)
toFile in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic String toPath(String namespace, String projectId, String projectVersion, String filename)
toPath in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic String toPath(String namespace, String projectId)
toPath in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic File toFile(File basedir, String namespace, String projectId)
toFile in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic File toFile(File basedir, String namespace)
toFile in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic org.apache.archiva.metadata.model.ArtifactMetadata getArtifactForPath(String repoId, String relativePath)
getArtifactForPath in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic org.apache.archiva.metadata.model.ArtifactMetadata getArtifactFromId(String repoId, String namespace, String projectId, String projectVersion, String id)
getArtifactFromId in interface org.apache.archiva.metadata.repository.storage.RepositoryPathTranslatorpublic boolean isArtifactIdValidMavenPlugin(String artifactId)
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.