Interface ArtifactLinkManager
-
- All Known Implementing Classes:
DefaultArtifactLinkManager
public interface ArtifactLinkManagerA manager forArtifactLink.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description @NotNull ArtifactLinkaddArtifactLink(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull String publisherPluginKey)@NotNull Collection<ArtifactLink>addArtifactLinks(@NotNull BuildResultsSummary producerResult, @NotNull ArtifactPublishingResult result)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 theArtifacts for the givenPlanResultKey@Nullable ArtifactLinkDataProvidergetArtifactLinkDataProvider(@NotNull Artifact artifact)@Nullable ArtifactLinkDataProvidergetArtifactLinkDataProvider(@NotNull ArtifactLink artifactLink)Deprecated.since 5.6 use thegetArtifactLinkDataProvider(com.atlassian.bamboo.artifact.Artifact)@NotNull Collection<ArtifactLink>getArtifactLinks(@NotNull ResultsSummary resultsSummary, @Nullable String linkType)@NotNull Collection<ArtifactLink>getArtifactLinksForLinkType(@NotNull ResultsSummary resultsSummary, @NotNull String linkType)Deprecated.voidremoveArtifactLink(long artifactLinkId)Remove an artifact link.voidremoveArtifactLink(@NotNull ArtifactLink artifactLink)Remove an artifact link.voidremoveArtifactLinks(@NotNull ChainResultsSummary chainResultsSummary)Remove all artifact links from the ChainResultsSummary.voidremoveArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary)Remove all artifact links from the BuildResultsSummary.voidremoveProducedArtifactLinks(@NotNull BuildResultsSummary buildResultsSummary)Remove all artifacts produced by a job in a build.
-
-
-
Method Detail
-
addArtifactLink
@NotNull @Deprecated @NotNull ArtifactLink addArtifactLink(@NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull @NotNull String publisherPluginKey)
Deprecated.Create ArtifactLink object and add it to the BuildResultsSummary.- Parameters:
producerResult- ResultsSummary object representing build that produced the artifactartifactDefinitionContext- artifact definition contextpublisherPluginKey- the plugin key of the artifact handler used to publish the artifact- Returns:
- ArtifactLink object which has been added to BuildResultsSummary
- Since:
- 3.0
-
addArtifactLinks
@NotNull @NotNull Collection<ArtifactLink> addArtifactLinks(@NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactPublishingResult result)
Create ArtifactLink object and add it to the BuildResultsSummary.- Parameters:
producerResult- ResultsSummary object representing build that produced the artifactresult- the artifact publishing result- Returns:
- ArtifactLink objects which has been added to BuildResultsSummary
-
removeArtifactLink
void removeArtifactLink(@NotNull @NotNull ArtifactLink artifactLink) throws IOExceptionRemove an artifact link.- Parameters:
artifactLink-- Throws:
IOException
-
removeArtifactLink
void removeArtifactLink(long artifactLinkId) throws IOExceptionRemove an artifact link.- Parameters:
artifactLinkId-- Throws:
IOException
-
removeArtifactLinks
void removeArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary)Remove all artifact links from the BuildResultsSummary.- Parameters:
buildResultsSummary-
-
removeProducedArtifactLinks
void removeProducedArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary) throws IOExceptionRemove all artifacts produced by a job in a build.- Parameters:
buildResultsSummary-- Throws:
IOException
-
removeArtifactLinks
void removeArtifactLinks(@NotNull @NotNull ChainResultsSummary chainResultsSummary) throws IOExceptionRemove all artifact links from the ChainResultsSummary.- Parameters:
chainResultsSummary-- Throws:
IOException
-
getArtifactLinks
@NotNull @NotNull Collection<ArtifactLink> getArtifactLinks(@NotNull @NotNull ResultsSummary resultsSummary, @Nullable @Nullable String linkType)
- Parameters:
resultsSummary-linkType-- Returns:
- artifactLinks
-
getArtifactLinksForLinkType
@Deprecated @NotNull @NotNull Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull @NotNull ResultsSummary resultsSummary, @NotNull @NotNull String linkType)
Deprecated.- Parameters:
resultsSummary-linkType-- Returns:
- artifactLinks
- Since:
- 3.0
-
getArtifactLinkDataProvider
@Deprecated @Nullable @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull ArtifactLink artifactLink)
Deprecated.since 5.6 use thegetArtifactLinkDataProvider(com.atlassian.bamboo.artifact.Artifact)- Parameters:
artifactLink-- Returns:
-
getArtifactLinkDataProvider
@Nullable @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull Artifact artifact)
-
findArtifactsByChainResultKey
@NotNull @NotNull com.google.common.collect.Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
Gets all theArtifacts for the givenPlanResultKey- Parameters:
chainResultKey-- Since:
- 5.10
-
findArtifactLinksByChainResultKey
@NotNull @NotNull Collection<ArtifactLink> findArtifactLinksByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
-
-