|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.continuum.purge.repository.content.ManagedDefaultRepositoryContent
public class ManagedDefaultRepositoryContent
Taken from Archiva's ManagedDefaultRepositoryContent and made some few changes.
| Constructor Summary | |
|---|---|
ManagedDefaultRepositoryContent()
|
|
| 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)
Gather the Available Versions (on disk) for a specific Project Reference, based on filesystem information. |
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 repository)
Set the local repository to associate with this repository content. |
org.apache.maven.archiva.model.ArtifactReference |
toArtifactReference(String path)
Convert a path to an artifact reference. |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ManagedDefaultRepositoryContent()
| Method Detail |
|---|
public void deleteVersion(org.apache.maven.archiva.model.VersionedReference reference)
throws org.apache.maven.archiva.repository.ContentNotFoundException
RepositoryManagedContent
deleteVersion in interface RepositoryManagedContentreference - the version reference to delete.
org.apache.maven.archiva.repository.ContentNotFoundExceptionpublic int getId()
RepositoryManagedContentConvenience method to get the repository id.
Equivalent to calling .getRepository().getId()
getId in interface RepositoryManagedContent
public 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
RepositoryManagedContentGather 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.
getRelatedArtifacts in interface RepositoryManagedContentreference - 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.LayoutExceptionpublic String getRepoRoot()
RepositoryManagedContentConvenience method to get the repository (on disk) root directory.
Equivalent to calling .getLocalRepository().getDirectory()
getRepoRoot in interface RepositoryManagedContentpublic LocalRepository getRepository()
RepositoryManagedContent
getRepository in interface RepositoryManagedContent
public Set<String> getVersions(org.apache.maven.archiva.model.ProjectReference reference)
throws org.apache.maven.archiva.repository.ContentNotFoundException,
org.apache.maven.archiva.repository.layout.LayoutException
getVersions in interface RepositoryManagedContentreference - the project reference to work off of.
org.apache.maven.archiva.repository.ContentNotFoundException
org.apache.maven.archiva.repository.layout.LayoutException
public Set<String> getVersions(org.apache.maven.archiva.model.VersionedReference reference)
throws org.apache.maven.archiva.repository.ContentNotFoundException,
org.apache.maven.archiva.repository.layout.LayoutException
RepositoryManagedContent
Given a specific VersionedReference, return the list of available versions for that
versioned reference.
NOTE: This is really only useful when working with SNAPSHOTs.
getVersions in interface RepositoryManagedContentreference - 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.LayoutExceptionpublic String toMetadataPath(org.apache.maven.archiva.model.ProjectReference reference)
RepositoryManagedContentProjectReference, return the path to the metadata for
the project.
toMetadataPath in interface RepositoryManagedContentreference - the reference to use.
public String toMetadataPath(org.apache.maven.archiva.model.VersionedReference reference)
RepositoryManagedContentVersionedReference, return the path to the metadata for
the specific version of the project.
toMetadataPath in interface RepositoryManagedContentreference - the reference to use.
public String toPath(org.apache.maven.archiva.model.ArtifactReference reference)
RepositoryManagedContentArtifactReference, return the relative path to the artifact.
toPath in interface RepositoryManagedContentreference - the artifact reference to use.
public void setRepository(LocalRepository repository)
RepositoryManagedContent
setRepository in interface RepositoryManagedContentrepository - the repository to associate with this repository content.
public org.apache.maven.archiva.model.ArtifactReference toArtifactReference(String path)
throws org.apache.maven.archiva.repository.layout.LayoutException
toArtifactReference in interface RepositoryManagedContentpath - the path to convert. (relative or full location path)
ArtifactReference representing the path. (or null if path cannot be converted to
a ArtifactReference)
org.apache.maven.archiva.repository.layout.LayoutException - if the path cannot be converted to an artifact reference.public File toFile(org.apache.maven.archiva.model.ArtifactReference reference)
RepositoryManagedContentArtifactReference, return the file reference to the artifact.
toFile in interface RepositoryManagedContentreference - the artifact reference to use.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||