Interface ArtifactMetadata
- All Known Subinterfaces:
- ArtifactMetadata
public interface ArtifactMetadata
Contains 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
- 
Method SummaryModifier and TypeMethodDescriptiongetKey()getLocalFilename(ArtifactRepository repository) Get the filename of this metadata on the local repository.Get the filename of this metadata on the remote repository.voidmerge(ArtifactMetadata metadata) Merge a new metadata set into this piece of metadata.booleanWhether this metadata should be stored alongside the artifact.booleanWhether this metadata should be stored alongside the group.voidstoreInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) Store the metadata in the local repository.
- 
Method Details- 
storedInArtifactVersionDirectoryboolean storedInArtifactVersionDirectory()Whether this metadata should be stored alongside the artifact.- Returns:
- whether this metadata should be stored alongside the artifact
 
- 
storedInGroupDirectoryboolean storedInGroupDirectory()Whether this metadata should be stored alongside the group.- Returns:
- whether this metadata should be stored alongside the group
 
- 
getGroupIdString getGroupId()
- 
getArtifactIdString getArtifactId()
- 
getBaseVersionString getBaseVersion()
- 
getKeyObject getKey()
- 
getLocalFilenameGet the filename of this metadata on the local repository.- Parameters:
- repository- the remote repository it came from
- Returns:
- the filename
 
- 
getRemoteFilenameString getRemoteFilename()Get the filename of this metadata on the remote repository.- Returns:
- the filename
 
- 
mergeMerge a new metadata set into this piece of metadata. TODO this should only be needed on the repository metadataArtifactMetadata- Parameters:
- metadata- the new metadata
 
- 
storeInLocalRepositoryvoid 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 repository
- remoteRepository- the remote repository it came from
- Throws:
- RepositoryMetadataStoreException- in case of issue
 
- 
extendedToStringString extendedToString()
 
-