|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RepositoryManagedContent
Taken from Archiva's ManagedRepositoryContent interface and made some few changes.
Method Summary | |
---|---|
void |
deleteVersion(org.apache.maven.archiva.model.VersionedReference reference)
Delete from the local repository all files / directories associated with the provided version reference. |
int |
getId()
Convenience method to get the repository id. |
Set<org.apache.maven.archiva.model.ArtifactReference> |
getRelatedArtifacts(org.apache.maven.archiva.model.ArtifactReference reference)
Gather up the list of related artifacts to the ArtifactReference provided. |
String |
getRepoRoot()
Convenience method to get the repository (on disk) root directory. |
LocalRepository |
getRepository()
Get the local repository associated with this repository content. |
Set<String> |
getVersions(org.apache.maven.archiva.model.ProjectReference reference)
Given a specific ProjectReference , return the list of available versions for
that project reference. |
Set<String> |
getVersions(org.apache.maven.archiva.model.VersionedReference reference)
Given a specific VersionedReference , return the list of available versions for that
versioned reference. |
void |
setRepository(LocalRepository repo)
Set the local repository to associate with this repository content. |
org.apache.maven.archiva.model.ArtifactReference |
toArtifactReference(String path)
Given a repository relative path to a filename, return the VersionedReference object suitable for the path. |
File |
toFile(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference , return the file reference to the artifact. |
String |
toMetadataPath(org.apache.maven.archiva.model.ProjectReference reference)
Given a ProjectReference , return the path to the metadata for
the project. |
String |
toMetadataPath(org.apache.maven.archiva.model.VersionedReference reference)
Given a VersionedReference , return the path to the metadata for
the specific version of the project. |
String |
toPath(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference , return the relative path to the artifact. |
Method Detail |
---|
void deleteVersion(org.apache.maven.archiva.model.VersionedReference reference) throws org.apache.maven.archiva.repository.ContentNotFoundException
reference
- the version reference to delete.
org.apache.maven.archiva.repository.ContentNotFoundException
int getId()
Convenience method to get the repository id.
Equivalent to calling .getRepository().getId()
Set<org.apache.maven.archiva.model.ArtifactReference> getRelatedArtifacts(org.apache.maven.archiva.model.ArtifactReference reference) throws org.apache.maven.archiva.repository.ContentNotFoundException, org.apache.maven.archiva.repository.layout.LayoutException
Gather up the list of related artifacts to the ArtifactReference provided. This typically inclues the pom files, and those things with classifiers (such as doc, source code, test libs, etc...)
NOTE: Some layouts (such as maven 1 "legacy") are not compatible with this query.
reference
- the reference to work off of.
org.apache.maven.archiva.repository.ContentNotFoundException
- if the initial artifact reference does not exist within the repository.
org.apache.maven.archiva.repository.layout.LayoutException
String getRepoRoot()
Convenience method to get the repository (on disk) root directory.
Equivalent to calling .getLocalRepository().getDirectory()
LocalRepository getRepository()
Set<String> getVersions(org.apache.maven.archiva.model.ProjectReference reference) throws org.apache.maven.archiva.repository.ContentNotFoundException, org.apache.maven.archiva.repository.layout.LayoutException
ProjectReference
, return the list of available versions for
that project reference.
reference
- the project reference to work off of.
org.apache.maven.archiva.repository.ContentNotFoundException
- if the project reference does not exist within the repository.
org.apache.maven.archiva.repository.layout.LayoutException
Set<String> getVersions(org.apache.maven.archiva.model.VersionedReference reference) throws org.apache.maven.archiva.repository.ContentNotFoundException, org.apache.maven.archiva.repository.layout.LayoutException
Given a specific VersionedReference
, return the list of available versions for that
versioned reference.
NOTE: This is really only useful when working with SNAPSHOTs.
reference
- the versioned reference to work off of.
org.apache.maven.archiva.repository.ContentNotFoundException
- if the versioned reference does not exist within the repository.
org.apache.maven.archiva.repository.layout.LayoutException
void setRepository(LocalRepository repo)
repo
- the repository to associate with this repository content.org.apache.maven.archiva.model.ArtifactReference toArtifactReference(String path) throws org.apache.maven.archiva.repository.layout.LayoutException
VersionedReference
object suitable for the path.
path
- the path relative to the repository base dir for the artifact.
ArtifactReference
representing the path. (or null if path cannot be converted to
a ArtifactReference
)
org.apache.maven.archiva.repository.layout.LayoutException
- if there was a problem converting the path to an artifact.File toFile(org.apache.maven.archiva.model.ArtifactReference reference)
ArtifactReference
, return the file reference to the artifact.
reference
- the artifact reference to use.
String toMetadataPath(org.apache.maven.archiva.model.ProjectReference reference)
ProjectReference
, return the path to the metadata for
the project.
reference
- the reference to use.
String toMetadataPath(org.apache.maven.archiva.model.VersionedReference reference)
VersionedReference
, return the path to the metadata for
the specific version of the project.
reference
- the reference to use.
String toPath(org.apache.maven.archiva.model.ArtifactReference reference)
ArtifactReference
, return the relative path to the artifact.
reference
- the artifact reference to use.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |