Class LegacyLocalRepositoryManager.ArtifactMetadataAdapter
- java.lang.Object
-
- org.apache.maven.artifact.repository.LegacyLocalRepositoryManager.ArtifactMetadataAdapter
-
- All Implemented Interfaces:
ArtifactMetadata,ArtifactMetadata
- Enclosing class:
- LegacyLocalRepositoryManager
static class LegacyLocalRepositoryManager.ArtifactMetadataAdapter extends java.lang.Object implements ArtifactMetadata
-
-
Field Summary
Fields Modifier and Type Field Description private org.eclipse.aether.metadata.Metadatametadata
-
Constructor Summary
Constructors Constructor Description ArtifactMetadataAdapter(org.eclipse.aether.metadata.Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete 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.private java.lang.StringinsertRepositoryKey(java.lang.String filename, java.lang.String repositoryKey)voidmerge(ArtifactMetadata metadata)voidmerge(ArtifactMetadata metadata)Merge a new metadata set into this piece of metadata.private java.lang.Stringnullify(java.lang.String str)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
public boolean storedInArtifactVersionDirectory()
Description copied from interface:ArtifactMetadataWhether this metadata should be stored alongside the artifact.- Specified by:
storedInArtifactVersionDirectoryin interfaceArtifactMetadata
-
storedInGroupDirectory
public boolean storedInGroupDirectory()
Description copied from interface:ArtifactMetadataWhether this metadata should be stored alongside the group.- Specified by:
storedInGroupDirectoryin interfaceArtifactMetadata
-
getGroupId
public java.lang.String getGroupId()
- Specified by:
getGroupIdin interfaceArtifactMetadata
-
getArtifactId
public java.lang.String getArtifactId()
- Specified by:
getArtifactIdin interfaceArtifactMetadata
-
getBaseVersion
public java.lang.String getBaseVersion()
- Specified by:
getBaseVersionin interfaceArtifactMetadata
-
nullify
private java.lang.String nullify(java.lang.String str)
-
getKey
public java.lang.Object getKey()
- Specified by:
getKeyin interfaceArtifactMetadata
-
getRemoteFilename
public java.lang.String getRemoteFilename()
Description copied from interface:ArtifactMetadataGet the filename of this metadata on the remote repository.- Specified by:
getRemoteFilenamein interfaceArtifactMetadata- Returns:
- the filename
-
getLocalFilename
public java.lang.String getLocalFilename(ArtifactRepository repository)
Description copied from interface:ArtifactMetadataGet the filename of this metadata on the local repository.- Specified by:
getLocalFilenamein interfaceArtifactMetadata- Parameters:
repository- the remote repository it came from- Returns:
- the filename
-
insertRepositoryKey
private java.lang.String insertRepositoryKey(java.lang.String filename, java.lang.String repositoryKey)
-
merge
public void merge(ArtifactMetadata metadata)
Description copied from interface:ArtifactMetadataMerge a new metadata set into this piece of metadata.- Specified by:
mergein interfaceArtifactMetadata- Parameters:
metadata- the new metadata TODO this should only be needed on the repository metadata
-
merge
public void merge(ArtifactMetadata metadata)
- Specified by:
mergein interfaceArtifactMetadata
-
storeInLocalRepository
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
Description copied from interface:ArtifactMetadataStore the metadata in the local repository.- Specified by:
storeInLocalRepositoryin interfaceArtifactMetadata- Parameters:
localRepository- the local repositoryremoteRepository- the remote repository it came from TODO this should only be needed on the repository metadata- Throws:
RepositoryMetadataStoreException
-
extendedToString
public java.lang.String extendedToString()
- Specified by:
extendedToStringin interfaceArtifactMetadata
-
-