static class LegacyLocalRepositoryManager.ArtifactRepositoryAdapter extends java.lang.Object implements ArtifactRepository
Modifier and Type | Field and Description |
---|---|
private org.eclipse.aether.repository.RemoteRepository |
repository |
Constructor and Description |
---|
ArtifactRepositoryAdapter(org.eclipse.aether.repository.RemoteRepository repository) |
Modifier and Type | Method and Description |
---|---|
Artifact |
find(Artifact artifact) |
java.util.List<java.lang.String> |
findVersions(Artifact artifact)
Finds the versions of the specified artifact that are available in this repository.
|
Authentication |
getAuthentication() |
java.lang.String |
getBasedir() |
java.lang.String |
getId() |
java.lang.String |
getKey() |
ArtifactRepositoryLayout |
getLayout() |
java.util.List<ArtifactRepository> |
getMirroredRepositories() |
java.lang.String |
getProtocol() |
Proxy |
getProxy() |
ArtifactRepositoryPolicy |
getReleases() |
ArtifactRepositoryPolicy |
getSnapshots() |
java.lang.String |
getUrl() |
boolean |
isBlacklisted() |
boolean |
isBlocked() |
boolean |
isProjectAware()
Indicates whether this repository is backed by actual projects.
|
boolean |
isUniqueVersion() |
java.lang.String |
pathOf(Artifact artifact) |
java.lang.String |
pathOfLocalRepositoryMetadata(ArtifactMetadata metadata,
ArtifactRepository repository) |
java.lang.String |
pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata) |
void |
setAuthentication(Authentication authentication) |
void |
setBlacklisted(boolean blackListed) |
void |
setBlocked(boolean blocked) |
void |
setId(java.lang.String id) |
void |
setLayout(ArtifactRepositoryLayout layout) |
void |
setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories) |
void |
setProxy(Proxy proxy) |
void |
setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy) |
void |
setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy) |
void |
setUrl(java.lang.String url) |
ArtifactRepositoryAdapter(org.eclipse.aether.repository.RemoteRepository repository)
public java.lang.String pathOf(Artifact artifact)
pathOf
in interface ArtifactRepository
public java.lang.String pathOfRemoteRepositoryMetadata(ArtifactMetadata artifactMetadata)
pathOfRemoteRepositoryMetadata
in interface ArtifactRepository
public java.lang.String pathOfLocalRepositoryMetadata(ArtifactMetadata metadata, ArtifactRepository repository)
pathOfLocalRepositoryMetadata
in interface ArtifactRepository
public java.lang.String getUrl()
getUrl
in interface ArtifactRepository
public void setUrl(java.lang.String url)
setUrl
in interface ArtifactRepository
public java.lang.String getBasedir()
getBasedir
in interface ArtifactRepository
public java.lang.String getProtocol()
getProtocol
in interface ArtifactRepository
public java.lang.String getId()
getId
in interface ArtifactRepository
public void setId(java.lang.String id)
setId
in interface ArtifactRepository
public ArtifactRepositoryPolicy getSnapshots()
getSnapshots
in interface ArtifactRepository
public void setSnapshotUpdatePolicy(ArtifactRepositoryPolicy policy)
setSnapshotUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryPolicy getReleases()
getReleases
in interface ArtifactRepository
public void setReleaseUpdatePolicy(ArtifactRepositoryPolicy policy)
setReleaseUpdatePolicy
in interface ArtifactRepository
public ArtifactRepositoryLayout getLayout()
getLayout
in interface ArtifactRepository
public void setLayout(ArtifactRepositoryLayout layout)
setLayout
in interface ArtifactRepository
public java.lang.String getKey()
getKey
in interface ArtifactRepository
public boolean isUniqueVersion()
isUniqueVersion
in interface ArtifactRepository
public boolean isBlacklisted()
isBlacklisted
in interface ArtifactRepository
public void setBlacklisted(boolean blackListed)
setBlacklisted
in interface ArtifactRepository
public Artifact find(Artifact artifact)
find
in interface ArtifactRepository
public java.util.List<java.lang.String> findVersions(Artifact artifact)
ArtifactRepository
findVersions
in interface ArtifactRepository
artifact
- The artifact whose available versions should be determined, must not be null
.null
.public boolean isProjectAware()
ArtifactRepository
isProjectAware
in interface ArtifactRepository
true
if the repository is backed by actual projects, false
otherwise.public void setAuthentication(Authentication authentication)
setAuthentication
in interface ArtifactRepository
public Authentication getAuthentication()
getAuthentication
in interface ArtifactRepository
public void setProxy(Proxy proxy)
setProxy
in interface ArtifactRepository
public Proxy getProxy()
getProxy
in interface ArtifactRepository
public java.util.List<ArtifactRepository> getMirroredRepositories()
getMirroredRepositories
in interface ArtifactRepository
public void setMirroredRepositories(java.util.List<ArtifactRepository> mirroredRepositories)
setMirroredRepositories
in interface ArtifactRepository
mirroredRepositories
- the repositories that the actual one mirrorspublic boolean isBlocked()
isBlocked
in interface ArtifactRepository
public void setBlocked(boolean blocked)
setBlocked
in interface ArtifactRepository