public class DefaultArtifactLinkManager extends Object implements ArtifactLinkManager
Constructor and Description |
---|
DefaultArtifactLinkManager(ArtifactLinkDao artifactLinkDao,
ArtifactDao artifactDao,
ArtifactManager artifactManager,
com.atlassian.plugin.PluginAccessor pluginAccessor,
AdministrationConfigurationAccessor administrationConfigurationAccessor) |
Modifier and Type | Method and Description |
---|---|
ArtifactLink |
addArtifactLink(BuildResultsSummary producerResult,
ArtifactDefinitionContext artifactDefinitionContext,
String publisherPluginKey)
Create ArtifactLink object and add it to the BuildResultsSummary.
|
Collection<ArtifactLink> |
addArtifactLinks(BuildResultsSummary producerResult,
ArtifactPublishingResult publishingResult)
Create ArtifactLink object and add it to the BuildResultsSummary.
|
com.google.common.collect.Multimap<String,Artifact> |
findArtifactsByChainResultKey(PlanResultKey chainResultKey)
Gets all the
Artifact s for the given PlanResultKey |
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(Artifact artifact) |
ArtifactLinkDataProvider |
getArtifactLinkDataProvider(ArtifactLink artifactLink) |
Collection<ArtifactLink> |
getArtifactLinks(ResultsSummary resultsSummary,
String linkType)
|
Collection<ArtifactLink> |
getArtifactLinksForLinkType(ResultsSummary resultsSummary,
String linkType)
|
void |
removeArtifactLink(ArtifactLink artifactLink)
Remove an artifact link.
|
void |
removeArtifactLink(long artifactLinkId)
Remove an artifact link.
|
void |
removeArtifactLinks(BuildResultsSummary buildResultsSummary)
Remove all artifact links from the BuildResultsSummary.
|
void |
removeArtifactLinks(ChainResultsSummary chainResultsSummary)
Remove all artifact links from the ChainResultsSummary.
|
void |
removeProducedArtifactLinks(BuildResultsSummary buildResultsSummary)
Remove all artifacts produced by a job in a build.
|
public DefaultArtifactLinkManager(ArtifactLinkDao artifactLinkDao, ArtifactDao artifactDao, ArtifactManager artifactManager, com.atlassian.plugin.PluginAccessor pluginAccessor, AdministrationConfigurationAccessor administrationConfigurationAccessor)
@NotNull public ArtifactLink addArtifactLink(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull String publisherPluginKey)
ArtifactLinkManager
addArtifactLink
in interface ArtifactLinkManager
producerResult
- ResultsSummary object representing build that produced the artifactartifactDefinitionContext
- artifact definition contextpublisherPluginKey
- the plugin key of the artifact handler used to publish the artifact@NotNull public Collection<ArtifactLink> addArtifactLinks(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactPublishingResult publishingResult)
ArtifactLinkManager
addArtifactLinks
in interface ArtifactLinkManager
producerResult
- ResultsSummary object representing build that produced the artifactpublishingResult
- the artifact publishing resultpublic void removeArtifactLink(long artifactLinkId) throws IOException
ArtifactLinkManager
removeArtifactLink
in interface ArtifactLinkManager
IOException
public void removeArtifactLink(@NotNull ArtifactLink artifactLink) throws IOException
ArtifactLinkManager
removeArtifactLink
in interface ArtifactLinkManager
IOException
public void removeProducedArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary) throws IOException
ArtifactLinkManager
removeProducedArtifactLinks
in interface ArtifactLinkManager
IOException
public void removeArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary)
ArtifactLinkManager
removeArtifactLinks
in interface ArtifactLinkManager
public void removeArtifactLinks(@NotNull ChainResultsSummary chainResultsSummary) throws IOException
ArtifactLinkManager
removeArtifactLinks
in interface ArtifactLinkManager
IOException
@NotNull public Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull ResultsSummary resultsSummary, @NotNull String linkType)
ArtifactLinkManager
getArtifactLinksForLinkType
in interface ArtifactLinkManager
@NotNull public Collection<ArtifactLink> getArtifactLinks(@NotNull ResultsSummary resultsSummary, @Nullable String linkType)
ArtifactLinkManager
getArtifactLinks
in interface ArtifactLinkManager
@Nullable public ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull ArtifactLink artifactLink)
getArtifactLinkDataProvider
in interface ArtifactLinkManager
@Nullable public ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull Artifact artifact)
getArtifactLinkDataProvider
in interface ArtifactLinkManager
@NotNull public com.google.common.collect.Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull PlanResultKey chainResultKey)
ArtifactLinkManager
Artifact
s for the given PlanResultKey
findArtifactsByChainResultKey
in interface ArtifactLinkManager
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.