@Service(value="repositoryPathTranslator#maven2") public class Maven2RepositoryPathTranslator extends Object implements RepositoryPathTranslator
PATH_SEPARATOR
Constructor and Description |
---|
Maven2RepositoryPathTranslator() |
Maven2RepositoryPathTranslator(List<ArtifactMappingProvider> artifactMappingProviders) |
Modifier and Type | Method and Description |
---|---|
ArtifactMetadata |
getArtifactForPath(String repoId,
String relativePath) |
ArtifactMetadata |
getArtifactFromId(String repoId,
String namespace,
String projectId,
String projectVersion,
String id) |
void |
initialize() |
boolean |
isArtifactIdValidMavenPlugin(String artifactId) |
StorageAsset |
toFile(StorageAsset basedir,
String namespace) |
StorageAsset |
toFile(StorageAsset basedir,
String namespace,
String projectId) |
StorageAsset |
toFile(StorageAsset basedir,
String namespace,
String projectId,
String projectVersion) |
StorageAsset |
toFile(StorageAsset 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 StorageAsset toFile(StorageAsset basedir, String namespace, String projectId, String projectVersion, String filename)
toFile
in interface RepositoryPathTranslator
public StorageAsset toFile(StorageAsset basedir, String namespace, String projectId, String projectVersion)
toFile
in interface RepositoryPathTranslator
public String toPath(String namespace, String projectId, String projectVersion, String filename)
toPath
in interface RepositoryPathTranslator
public String toPath(String namespace, String projectId)
toPath
in interface RepositoryPathTranslator
public StorageAsset toFile(StorageAsset basedir, String namespace, String projectId)
toFile
in interface RepositoryPathTranslator
public StorageAsset toFile(StorageAsset basedir, String namespace)
toFile
in interface RepositoryPathTranslator
public ArtifactMetadata getArtifactForPath(String repoId, String relativePath)
getArtifactForPath
in interface RepositoryPathTranslator
public ArtifactMetadata getArtifactFromId(String repoId, String namespace, String projectId, String projectVersion, String id)
getArtifactFromId
in interface RepositoryPathTranslator
public boolean isArtifactIdValidMavenPlugin(String artifactId)
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.