|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.maven.archiva.repository.metadata.MetadataTools
public class MetadataTools
MetadataTools
Field Summary | |
---|---|
static java.lang.String |
MAVEN_METADATA
|
Constructor Summary | |
---|---|
MetadataTools()
|
Method Summary | |
---|---|
void |
afterConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
|
void |
beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry,
java.lang.String propertyName,
java.lang.Object propertyValue)
|
java.util.Set<java.lang.String> |
gatherSnapshotVersions(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.VersionedReference reference)
Gather the set of snapshot versions found in a particular versioned reference. |
org.apache.maven.archiva.model.ArtifactReference |
getFirstArtifact(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.VersionedReference reference)
Get the first Artifact found in the provided VersionedReference location. |
java.lang.String |
getRepositorySpecificName(RemoteRepositoryContent repository,
java.lang.String path)
Adjusts a path for a metadata.xml file to its repository specific path. |
java.lang.String |
getRepositorySpecificName(java.lang.String proxyId,
java.lang.String path)
Adjusts a path for a metadata.xml file to its repository specific path. |
void |
initialize()
|
org.apache.maven.archiva.model.ArchivaRepositoryMetadata |
readProxyMetadata(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.ProjectReference reference,
java.lang.String proxyId)
|
org.apache.maven.archiva.model.ArchivaRepositoryMetadata |
readProxyMetadata(ManagedRepositoryContent managedRepository,
java.lang.String logicalResource,
java.lang.String proxyId)
|
org.apache.maven.archiva.model.ArchivaRepositoryMetadata |
readProxyMetadata(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.VersionedReference reference,
java.lang.String proxyId)
|
java.lang.String |
toPath(org.apache.maven.archiva.model.ProjectReference reference)
|
java.lang.String |
toPath(org.apache.maven.archiva.model.VersionedReference reference)
|
org.apache.maven.archiva.model.ProjectReference |
toProjectReference(java.lang.String path)
|
org.apache.maven.archiva.model.VersionedReference |
toVersionedReference(java.lang.String path)
Take a path to a maven-metadata.xml, and attempt to translate it to a VersionedReference. |
void |
updateMetadata(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.ProjectReference reference)
Deprecated. |
void |
updateMetadata(ManagedRepositoryContent managedRepository,
java.lang.String logicalResource)
|
void |
updateMetadata(ManagedRepositoryContent managedRepository,
org.apache.maven.archiva.model.VersionedReference reference)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MAVEN_METADATA
Constructor Detail |
---|
public MetadataTools()
Method Detail |
---|
public void afterConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
afterConfigurationChange
in interface org.codehaus.plexus.registry.RegistryListener
public void beforeConfigurationChange(org.codehaus.plexus.registry.Registry registry, java.lang.String propertyName, java.lang.Object propertyValue)
beforeConfigurationChange
in interface org.codehaus.plexus.registry.RegistryListener
public java.util.Set<java.lang.String> gatherSnapshotVersions(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.VersionedReference reference) throws LayoutException, java.io.IOException, ContentNotFoundException
LayoutException
ContentNotFoundException
java.io.IOException
public org.apache.maven.archiva.model.VersionedReference toVersionedReference(java.lang.String path) throws RepositoryMetadataException
path
-
RepositoryMetadataException
public org.apache.maven.archiva.model.ProjectReference toProjectReference(java.lang.String path) throws RepositoryMetadataException
RepositoryMetadataException
public java.lang.String toPath(org.apache.maven.archiva.model.ProjectReference reference)
public java.lang.String toPath(org.apache.maven.archiva.model.VersionedReference reference)
public java.lang.String getRepositorySpecificName(RemoteRepositoryContent repository, java.lang.String path)
repository
- the repository to base new path off of.path
- the path to the metadata.xml file to adjust the name of.
public java.lang.String getRepositorySpecificName(java.lang.String proxyId, java.lang.String path)
proxyId
- the repository id to base new path off of.path
- the path to the metadata.xml file to adjust the name of.
public void initialize() throws org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
initialize
in interface org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
public org.apache.maven.archiva.model.ArchivaRepositoryMetadata readProxyMetadata(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.ProjectReference reference, java.lang.String proxyId)
public org.apache.maven.archiva.model.ArchivaRepositoryMetadata readProxyMetadata(ManagedRepositoryContent managedRepository, java.lang.String logicalResource, java.lang.String proxyId)
public org.apache.maven.archiva.model.ArchivaRepositoryMetadata readProxyMetadata(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.VersionedReference reference, java.lang.String proxyId)
public void updateMetadata(ManagedRepositoryContent managedRepository, java.lang.String logicalResource) throws RepositoryMetadataException
RepositoryMetadataException
public void updateMetadata(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.ProjectReference reference) throws LayoutException, RepositoryMetadataException, java.io.IOException, ContentNotFoundException
managedRepository
- the managed repository where the metadata is kept.reference
- the reference to update.
LayoutException
RepositoryMetadataException
java.io.IOException
ContentNotFoundException
public void updateMetadata(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.VersionedReference reference) throws LayoutException, RepositoryMetadataException, java.io.IOException, ContentNotFoundException
managedRepository
- the managed repository where the metadata is kept.reference
- the versioned reference to update
LayoutException
RepositoryMetadataException
java.io.IOException
ContentNotFoundException
public org.apache.maven.archiva.model.ArtifactReference getFirstArtifact(ManagedRepositoryContent managedRepository, org.apache.maven.archiva.model.VersionedReference reference) throws LayoutException, java.io.IOException
managedRepository
- the repository to search within.reference
- the reference to the versioned reference to search within
java.io.IOException
- if the versioned reference is invalid (example: doesn't exist, or isn't a directory)
LayoutException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |