static class LegacyLocalRepositoryManager.ArtifactMetadataAdapter extends java.lang.Object implements ArtifactMetadata
| Modifier and Type | Field and Description |
|---|---|
private org.eclipse.aether.metadata.Metadata |
metadata |
| Constructor and Description |
|---|
ArtifactMetadataAdapter(org.eclipse.aether.metadata.Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
extendedToString() |
java.lang.String |
getArtifactId() |
java.lang.String |
getBaseVersion() |
java.lang.String |
getGroupId() |
java.lang.Object |
getKey() |
java.lang.String |
getLocalFilename(ArtifactRepository repository)
Get the filename of this metadata on the local repository.
|
java.lang.String |
getRemoteFilename()
Get the filename of this metadata on the remote repository.
|
private java.lang.String |
insertRepositoryKey(java.lang.String filename,
java.lang.String repositoryKey) |
void |
merge(ArtifactMetadata metadata)
Merge a new metadata set into this piece of metadata.
|
void |
merge(ArtifactMetadata metadata) |
private java.lang.String |
nullify(java.lang.String str) |
boolean |
storedInArtifactVersionDirectory()
Whether this metadata should be stored alongside the artifact.
|
boolean |
storedInGroupDirectory()
Whether this metadata should be stored alongside the group.
|
void |
storeInLocalRepository(ArtifactRepository localRepository,
ArtifactRepository remoteRepository)
Store the metadata in the local repository.
|
ArtifactMetadataAdapter(org.eclipse.aether.metadata.Metadata metadata)
public boolean storedInArtifactVersionDirectory()
ArtifactMetadatastoredInArtifactVersionDirectory in interface ArtifactMetadatapublic boolean storedInGroupDirectory()
ArtifactMetadatastoredInGroupDirectory in interface ArtifactMetadatapublic java.lang.String getGroupId()
getGroupId in interface ArtifactMetadatapublic java.lang.String getArtifactId()
getArtifactId in interface ArtifactMetadatapublic java.lang.String getBaseVersion()
getBaseVersion in interface ArtifactMetadataprivate java.lang.String nullify(java.lang.String str)
public java.lang.Object getKey()
getKey in interface ArtifactMetadatapublic java.lang.String getRemoteFilename()
ArtifactMetadatagetRemoteFilename in interface ArtifactMetadatapublic java.lang.String getLocalFilename(ArtifactRepository repository)
ArtifactMetadatagetLocalFilename in interface ArtifactMetadatarepository - the remote repository it came fromprivate java.lang.String insertRepositoryKey(java.lang.String filename,
java.lang.String repositoryKey)
public void merge(ArtifactMetadata metadata)
ArtifactMetadatamerge in interface ArtifactMetadatametadata - the new metadata
TODO this should only be needed on the repository metadatapublic void merge(ArtifactMetadata metadata)
public void storeInLocalRepository(ArtifactRepository localRepository, ArtifactRepository remoteRepository) throws RepositoryMetadataStoreException
ArtifactMetadatastoreInLocalRepository in interface ArtifactMetadatalocalRepository - the local repositoryremoteRepository - the remote repository it came from
TODO this should only be needed on the repository metadataRepositoryMetadataStoreExceptionpublic java.lang.String extendedToString()
extendedToString in interface ArtifactMetadata