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.
|
public ArtifactMetadataAdapter(org.eclipse.aether.metadata.Metadata metadata)
public boolean storedInArtifactVersionDirectory()
ArtifactMetadata
storedInArtifactVersionDirectory
in interface ArtifactMetadata
public boolean storedInGroupDirectory()
ArtifactMetadata
storedInGroupDirectory
in interface ArtifactMetadata
public java.lang.String getGroupId()
getGroupId
in interface ArtifactMetadata
public java.lang.String getArtifactId()
getArtifactId
in interface ArtifactMetadata
public java.lang.String getBaseVersion()
getBaseVersion
in interface ArtifactMetadata
private java.lang.String nullify(java.lang.String str)
public java.lang.Object getKey()
getKey
in interface ArtifactMetadata
public java.lang.String getRemoteFilename()
ArtifactMetadata
getRemoteFilename
in interface ArtifactMetadata
public java.lang.String getLocalFilename(ArtifactRepository repository)
ArtifactMetadata
getLocalFilename
in interface ArtifactMetadata
repository
- the remote repository it came fromprivate java.lang.String insertRepositoryKey(java.lang.String filename, java.lang.String repositoryKey)
public void merge(ArtifactMetadata metadata)
ArtifactMetadata
merge
in interface ArtifactMetadata
metadata
- 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
ArtifactMetadata
storeInLocalRepository
in interface ArtifactMetadata
localRepository
- the local repositoryremoteRepository
- the remote repository it came from
TODO this should only be needed on the repository metadataRepositoryMetadataStoreException
public java.lang.String extendedToString()
extendedToString
in interface ArtifactMetadata