Interface ArtifactLinkManager
- All Known Implementing Classes:
DefaultArtifactLinkManager
public interface ArtifactLinkManager
A manager for
ArtifactLink
.-
Method Summary
Modifier and TypeMethodDescription@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) findArtifactsByChainResultKey
(@NotNull PlanResultKey chainResultKey) Gets all theArtifact
s for the givenPlanResultKey
@Nullable ArtifactLinkDataProvider
getArtifactLinkDataProvider
(@NotNull Artifact artifact) @NotNull Collection<ArtifactLink>
getArtifactLinks
(@NotNull ResultsSummary resultsSummary, @Nullable String linkType) void
removeArtifactLink
(long artifactLinkId) Remove an artifact link.void
removeArtifactLink
(@NotNull ArtifactLink artifactLink) Remove an artifact link.void
removeArtifactLinks
(@NotNull ChainResultsSummary chainResultsSummary) Remove all artifact links from the ChainResultsSummary.void
removeArtifactLinks
(@NotNull BuildResultsSummary buildResultsSummary) Remove all artifact links from the BuildResultsSummary.void
removeProducedArtifactLinks
(@NotNull BuildResultsSummary buildResultsSummary) Remove all artifacts produced by a job in a build.
-
Method Details
-
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
Remove an artifact link.- Parameters:
artifactLink
-- Throws:
IOException
-
removeArtifactLink
Remove an artifact link.- Parameters:
artifactLinkId
-- Throws:
IOException
-
removeArtifactLinks
Remove all artifact links from the BuildResultsSummary.- Parameters:
buildResultsSummary
-
-
removeProducedArtifactLinks
void removeProducedArtifactLinks(@NotNull @NotNull BuildResultsSummary buildResultsSummary) throws IOException Remove all artifacts produced by a job in a build.- Parameters:
buildResultsSummary
-- Throws:
IOException
-
removeArtifactLinks
void removeArtifactLinks(@NotNull @NotNull ChainResultsSummary chainResultsSummary) throws IOException Remove 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
-
getArtifactLinkDataProvider
@Nullable @Nullable ArtifactLinkDataProvider getArtifactLinkDataProvider(@NotNull @NotNull Artifact artifact) -
findArtifactsByChainResultKey
@NotNull @NotNull Multimap<String,Artifact> findArtifactsByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey) Gets all theArtifact
s for the givenPlanResultKey
- Parameters:
chainResultKey
-- Since:
- 5.10
-
findArtifactLinksByChainResultKey
@NotNull @NotNull Collection<ArtifactLink> findArtifactLinksByChainResultKey(@NotNull @NotNull PlanResultKey chainResultKey)
-