|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

java.lang.Objectorg.apache.maven.archiva.repository.content.AbstractDefaultRepositoryContent
org.apache.maven.archiva.repository.content.ManagedDefaultRepositoryContent
public class ManagedDefaultRepositoryContent
ManagedDefaultRepositoryContent
| Field Summary |
|---|
| Fields inherited from class org.apache.maven.archiva.repository.content.AbstractDefaultRepositoryContent |
|---|
ARTIFACT_SEPARATOR, GROUP_SEPARATOR, log, MAVEN_METADATA, PATH_SEPARATOR |
| Constructor Summary | |
|---|---|
ManagedDefaultRepositoryContent()
|
|
| Method Summary | |
|---|---|
void |
deleteVersion(org.apache.maven.archiva.model.VersionedReference reference)
Delete from the managed repository all files / directories associated with the provided version reference. |
java.lang.String |
getId()
Convenience method to get the repository id. |
java.util.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. |
java.lang.String |
getRepoRoot()
Convenience method to get the repository (on disk) root directory. |
org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration |
getRepository()
Get the repository configuration associated with this repository content. |
java.util.Set<java.lang.String> |
getVersions(org.apache.maven.archiva.model.ProjectReference reference)
Gather the Available Versions (on disk) for a specific Project Reference, based on filesystem information. |
java.util.Set<java.lang.String> |
getVersions(org.apache.maven.archiva.model.VersionedReference reference)
Given a specific VersionedReference, return the list of available versions for that
versioned reference. |
boolean |
hasContent(org.apache.maven.archiva.model.ArtifactReference reference)
Determines if the artifact referenced exists in the repository. |
boolean |
hasContent(org.apache.maven.archiva.model.ProjectReference reference)
Determines if the project referenced exists in the repository. |
boolean |
hasContent(org.apache.maven.archiva.model.VersionedReference reference)
Determines if the version reference exists in the repository. |
void |
setFiletypes(FileTypes filetypes)
|
void |
setRepository(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository)
Set the repository configuration to associate with this repository content. |
org.apache.maven.archiva.model.ArtifactReference |
toArtifactReference(java.lang.String path)
Convert a path to an artifact reference. |
java.io.File |
toFile(ArchivaArtifact reference)
Given an ArchivaArtifact, return the file reference to the artifact. |
java.io.File |
toFile(org.apache.maven.archiva.model.ArtifactReference reference)
Given an ArtifactReference, return the file reference to the artifact. |
| Methods inherited from class org.apache.maven.archiva.repository.content.AbstractDefaultRepositoryContent |
|---|
toMetadataPath, toMetadataPath, toPath, toPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.maven.archiva.repository.ManagedRepositoryContent |
|---|
toMetadataPath, toMetadataPath, toPath, toPath |
| Constructor Detail |
|---|
public ManagedDefaultRepositoryContent()
| Method Detail |
|---|
public void deleteVersion(org.apache.maven.archiva.model.VersionedReference reference)
throws ContentNotFoundException
ManagedRepositoryContent
deleteVersion in interface ManagedRepositoryContentreference - the version reference to delete.
ContentNotFoundExceptionpublic java.lang.String getId()
ManagedRepositoryContentConvenience method to get the repository id.
Equivalent to calling .getRepository().getId()
getId in interface ManagedRepositoryContent
public java.util.Set<org.apache.maven.archiva.model.ArtifactReference> getRelatedArtifacts(org.apache.maven.archiva.model.ArtifactReference reference)
throws ContentNotFoundException
ManagedRepositoryContentGather 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 ManagedRepositoryContentreference - the reference to work off of.
ContentNotFoundException - if the initial artifact reference does not exist within the repository.public java.lang.String getRepoRoot()
ManagedRepositoryContentConvenience method to get the repository (on disk) root directory.
Equivalent to calling .getRepository().getLocation()
getRepoRoot in interface ManagedRepositoryContentpublic org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration getRepository()
ManagedRepositoryContent
getRepository in interface ManagedRepositoryContent
public java.util.Set<java.lang.String> getVersions(org.apache.maven.archiva.model.ProjectReference reference)
throws ContentNotFoundException,
LayoutException
getVersions in interface ManagedRepositoryContentreference - the project reference to work off of.
LayoutException
LayoutException
ContentNotFoundException - if the project reference does nto exist within the repository.
public java.util.Set<java.lang.String> getVersions(org.apache.maven.archiva.model.VersionedReference reference)
throws ContentNotFoundException
ManagedRepositoryContent
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 ManagedRepositoryContentreference - the versioned reference to work off of.
ContentNotFoundException - if the versioned reference does not exist within the repository.public boolean hasContent(org.apache.maven.archiva.model.ArtifactReference reference)
ManagedRepositoryContent
hasContent in interface ManagedRepositoryContentreference - the artifact reference to check for.
public boolean hasContent(org.apache.maven.archiva.model.ProjectReference reference)
ManagedRepositoryContent
hasContent in interface ManagedRepositoryContentreference - the project reference to check for.
public boolean hasContent(org.apache.maven.archiva.model.VersionedReference reference)
ManagedRepositoryContent
hasContent in interface ManagedRepositoryContentreference - the version reference to check for.
public void setRepository(org.apache.maven.archiva.configuration.ManagedRepositoryConfiguration repository)
ManagedRepositoryContent
setRepository in interface ManagedRepositoryContentrepository - the repository to associate with this repository content.
public org.apache.maven.archiva.model.ArtifactReference toArtifactReference(java.lang.String path)
throws LayoutException
toArtifactReference in interface ManagedRepositoryContenttoArtifactReference in class AbstractDefaultRepositoryContentpath - the path to convert. (relative or full location path)
ArtifactReference representing the path. (or null if path cannot be converted to
a ArtifactReference)
LayoutException - if the path cannot be converted to an artifact reference.public java.io.File toFile(org.apache.maven.archiva.model.ArtifactReference reference)
ManagedRepositoryContentArtifactReference, return the file reference to the artifact.
toFile in interface ManagedRepositoryContentreference - the artifact reference to use.
public java.io.File toFile(ArchivaArtifact reference)
ManagedRepositoryContentArchivaArtifact, return the file reference to the artifact.
toFile in interface ManagedRepositoryContentreference - the archiva artifact to use.
public void setFiletypes(FileTypes filetypes)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||