Interface ArtifactMetadata
-
- All Known Subinterfaces:
ArtifactMetadata
public interface ArtifactMetadataContains metadata about an artifact, and methods to retrieve/store it from an artifact repository. TODO merge with artifactmetadatasource TODO retrieval exception not appropriate for store- Author:
- Brett Porter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringextendedToString()java.lang.StringgetArtifactId()java.lang.StringgetBaseVersion()java.lang.StringgetGroupId()java.lang.ObjectgetKey()java.lang.StringgetLocalFilename(ArtifactRepository repository)Get the filename of this metadata on the local repository.java.lang.StringgetRemoteFilename()Get the filename of this metadata on the remote repository.voidmerge(ArtifactMetadata metadata)Merge a new metadata set into this piece of metadata.booleanstoredInArtifactVersionDirectory()Whether this metadata should be stored alongside the artifact.booleanstoredInGroupDirectory()Whether this metadata should be stored alongside the group.voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository)Store the metadata in the local repository.
-
-
-
Method Detail
-
storedInArtifactVersionDirectory
boolean storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.
-
storedInGroupDirectory
boolean storedInGroupDirectory()
Whether this metadata should be stored alongside the group.
-
getGroupId
java.lang.String getGroupId()
-
getArtifactId
java.lang.String getArtifactId()
-
getBaseVersion
java.lang.String getBaseVersion()
-
getKey
java.lang.Object getKey()
-
getLocalFilename
java.lang.String getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.- Parameters:
repository- the remote repository it came from- Returns:
- the filename
-
getRemoteFilename
java.lang.String getRemoteFilename()
Get the filename of this metadata on the remote repository.- Returns:
- the filename
-
merge
void merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata. TODO this should only be needed on the repository metadataArtifactMetadata- Parameters:
metadata- the new metadata
-
storeInLocalRepository
void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
Store the metadata in the local repository. TODO this should only be needed on the repository metadataArtifactMetadata- Parameters:
localRepository- the local repositoryremoteRepository- the remote repository it came from- Throws:
RepositoryMetadataStoreException- in case of issue
-
extendedToString
java.lang.String extendedToString()
-
-