public interface RepositoryStorage
Modifier and Type | Method and Description |
---|---|
void |
applyServerSideRelocation(ManagedRepository managedRepository,
ArtifactReference artifact)
A relocation capable client will request the POM prior to the artifact, and will then read meta-data and do
client side relocation.
|
String |
getFilePath(String requestPath,
ManagedRepository managedRepository)
add an other method to evaluate real path as when receiving -SNAPSHOT (for maven storage)
request redirect to the last build
|
String |
getFilePathWithVersion(String requestPath,
ManagedRepositoryContent managedRepositoryContent) |
Collection<String> |
listNamespaces(String repoId,
String namespace,
Filter<String> filter) |
Collection<String> |
listProjects(String repoId,
String namespace,
Filter<String> filter) |
Collection<String> |
listProjectVersions(String repoId,
String namespace,
String projectId,
Filter<String> filter) |
Collection<String> |
listRootNamespaces(String repoId,
Filter<String> filter) |
ArtifactMetadata |
readArtifactMetadataFromPath(String repoId,
String path) |
Collection<ArtifactMetadata> |
readArtifactsMetadata(ReadMetadataRequest readMetadataRequest) |
ProjectMetadata |
readProjectMetadata(String repoId,
String namespace,
String projectId) |
ProjectVersionMetadata |
readProjectVersionMetadata(ReadMetadataRequest readMetadataRequest) |
ProjectMetadata readProjectMetadata(String repoId, String namespace, String projectId)
ProjectVersionMetadata readProjectVersionMetadata(ReadMetadataRequest readMetadataRequest) throws RepositoryStorageMetadataInvalidException, RepositoryStorageMetadataNotFoundException, RepositoryStorageRuntimeException
Collection<String> listRootNamespaces(String repoId, Filter<String> filter) throws RepositoryStorageRuntimeException
Collection<String> listNamespaces(String repoId, String namespace, Filter<String> filter) throws RepositoryStorageRuntimeException
Collection<String> listProjects(String repoId, String namespace, Filter<String> filter) throws RepositoryStorageRuntimeException
Collection<String> listProjectVersions(String repoId, String namespace, String projectId, Filter<String> filter) throws RepositoryStorageRuntimeException
Collection<ArtifactMetadata> readArtifactsMetadata(ReadMetadataRequest readMetadataRequest) throws RepositoryStorageRuntimeException
ArtifactMetadata readArtifactMetadataFromPath(String repoId, String path) throws RepositoryStorageRuntimeException
void applyServerSideRelocation(ManagedRepository managedRepository, ArtifactReference artifact) throws ProxyDownloadException
For such clients, archiva does server-side relocation by reading itself the <relocation> element in metadatas and serving the expected artifact.
managedRepository
- the used managed repositoryartifact
- the artifact referenceProxyDownloadException
String getFilePath(String requestPath, ManagedRepository managedRepository)
requestPath
- the web uri requestmanagedRepository
- the used managed repository can be null
so last version won't be resolvedString getFilePathWithVersion(String requestPath, ManagedRepositoryContent managedRepositoryContent) throws RelocationException, XMLException, IOException
Copyright © 2006–2019 The Apache Software Foundation. All rights reserved.