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 |
---|---|
@NotNull ArtifactLink |
addArtifactLink(@NotNull BuildResultsSummary producerResult,
@NotNull ArtifactDefinitionContext artifactDefinitionContext,
@NotNull String publisherPluginKey)
Create ArtifactLink object and add it to the BuildResultsSummary.
|
@NotNull Collection<ArtifactLink> |
addArtifactLinks(@NotNull BuildResultsSummary producerResult,
@NotNull ArtifactPublishingResult publishingResult)
Create ArtifactLink object and add it to the BuildResultsSummary.
|
@NotNull Collection<ArtifactLink> |
findArtifactLinksByChainResultKey(@NotNull PlanResultKey chainResultKey) |
@NotNull com.google.common.collect.Multimap<String,Artifact> |
findArtifactsByChainResultKey(@NotNull PlanResultKey chainResultKey)
Gets all the
Artifact s for the given PlanResultKey |
@Nullable ArtifactLinkDataProvider |
getArtifactLinkDataProvider(@NotNull Artifact artifact) |
@Nullable ArtifactLinkDataProvider |
getArtifactLinkDataProvider(@NotNull ArtifactLink artifactLink) |
@NotNull Collection<ArtifactLink> |
getArtifactLinks(@NotNull ResultsSummary resultsSummary,
@Nullable String linkType)
|
@NotNull Collection<ArtifactLink> |
getArtifactLinksForLinkType(@NotNull ResultsSummary resultsSummary,
@NotNull String linkType)
|
void |
removeArtifactLink(@NotNull ArtifactLink artifactLink)
Remove an artifact link.
|
void |
removeArtifactLink(long artifactLinkId)
Remove an artifact link.
|
void |
removeArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary)
Remove all artifact links from the BuildResultsSummary.
|
void |
removeArtifactLinks(@NotNull ChainResultsSummary chainResultsSummary)
Remove all artifact links from the ChainResultsSummary.
|
void |
removeProducedArtifactLinks(@NotNull 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 @NotNull ArtifactLink addArtifactLink(@NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull @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 @NotNull Collection<ArtifactLink> addArtifactLinks(@NotNull @NotNull BuildResultsSummary producerResult, @NotNull @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 @NotNull ArtifactLink artifactLink) throws IOException
ArtifactLinkManager
removeArtifactLink
in interface ArtifactLinkManager
IOException
public void removeProducedArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary) throws IOException
ArtifactLinkManager
removeProducedArtifactLinks
in interface ArtifactLinkManager
IOException
public void removeArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary)
ArtifactLinkManager
removeArtifactLinks
in interface ArtifactLinkManager
public void removeArtifactLinks(@NotNull @NotNull ChainResultsSummary chainResultsSummary) throws IOException
ArtifactLinkManager
removeArtifactLinks
in interface ArtifactLinkManager
IOException
@NotNull public @NotNull Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull String linkType)
ArtifactLinkManager
getArtifactLinksForLinkType
in interface ArtifactLinkManager
@NotNull public @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType)
ArtifactLinkManager
getArtifactLinks
in interface ArtifactLinkManager
@Nullable public @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull ArtifactLink artifactLink)
getArtifactLinkDataProvider
in interface ArtifactLinkManager
@Nullable public @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull Artifact artifact)
getArtifactLinkDataProvider
in interface ArtifactLinkManager
@NotNull public @NotNull com.google.common.collect.Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
ArtifactLinkManager
Artifact
s for the given PlanResultKey
findArtifactsByChainResultKey
in interface ArtifactLinkManager
@NotNull public @NotNull Collection<ArtifactLink> findArtifactLinksByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
findArtifactLinksByChainResultKey
in interface ArtifactLinkManager
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.