com.atlassian.bamboo.build.artifact
Interface ArtifactLinkManager

All Known Implementing Classes:
DefaultArtifactLinkManager

public interface ArtifactLinkManager

A manager for ArtifactLink.


Method Summary
 ArtifactLink addArtifactLink(BuildResultsSummary producerResult, ArtifactDefinitionBase artifactDefinitionBase)
          Create ArtifactLink object and add it to the BuildResultsSummary.
 ArtifactLink addArtifactLink(BuildResultsSummary producerResult, ArtifactDefinitionContext artifactDefinitionContext)
          Create ArtifactLink object and add it to the BuildResultsSummary.
 ArtifactLink addPlanLevelArtifactLink(ChainResultsSummary planResultSummary, ArtifactDefinitionContext artifactDefinitionContext)
          Create ArtifactLink object and add it to the ChainResultsSummary.
 java.util.Collection<ArtifactLink> getArtifactLinksForLinkType(ResultsSummary resultsSummary, java.lang.String linkType)
          Gets all the ArtifactLinks for the given ResultsSummary and ArtifactLink.getLinkType()
 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, Plan plan)
          Remove all artifact links from the ChainResultsSummary.
 void removeProducedArtifactLinks(BuildResultsSummary buildResultsSummary)
          Remove all artifacts produced by a job in a build.
 

Method Detail

addArtifactLink

@NotNull
ArtifactLink addArtifactLink(@NotNull
                                     BuildResultsSummary producerResult,
                                     @NotNull
                                     ArtifactDefinitionBase artifactDefinitionBase)
Create ArtifactLink object and add it to the BuildResultsSummary.

Parameters:
producerResult - ResultsSummary object representing build that produced the artifact
artifactDefinitionBase - artifact definition object
Returns:
ArtifactLink object which has been added to BuildResultsSummary
Since:
3.0

addArtifactLink

@NotNull
ArtifactLink addArtifactLink(@NotNull
                                     BuildResultsSummary producerResult,
                                     @NotNull
                                     ArtifactDefinitionContext artifactDefinitionContext)
Create ArtifactLink object and add it to the BuildResultsSummary.

Parameters:
producerResult - ResultsSummary object representing build that produced the artifact
artifactDefinitionContext - artifact definition context
Returns:
ArtifactLink object which has been added to BuildResultsSummary
Since:
3.0

addPlanLevelArtifactLink

@NotNull
ArtifactLink addPlanLevelArtifactLink(@NotNull
                                              ChainResultsSummary planResultSummary,
                                              @NotNull
                                              ArtifactDefinitionContext artifactDefinitionContext)
Create ArtifactLink object and add it to the ChainResultsSummary. ArtifactLink created with this method does not have a producer Job result specified.

Parameters:
planResultSummary - result of a plan producing the artifact
artifactDefinitionContext - artifact definition context
Returns:
ArtifactLink object which has been added to BuildResultsSummary
Since:
3.0

removeArtifactLink

void removeArtifactLink(@NotNull
                        ArtifactLink artifactLink)
Remove an artifact link.

Parameters:
artifactLink -

removeArtifactLink

void removeArtifactLink(long artifactLinkId)
Remove an artifact link.

Parameters:
artifactLinkId -

removeArtifactLinks

void removeArtifactLinks(@NotNull
                         BuildResultsSummary buildResultsSummary)
Remove all artifact links from the BuildResultsSummary.

Parameters:
buildResultsSummary -

removeProducedArtifactLinks

void removeProducedArtifactLinks(@NotNull
                                 BuildResultsSummary buildResultsSummary)
Remove all artifacts produced by a job in a build.

Parameters:
buildResultsSummary -

removeArtifactLinks

void removeArtifactLinks(@NotNull
                         ChainResultsSummary chainResultsSummary,
                         @Nullable
                         Plan plan)
Remove all artifact links from the ChainResultsSummary.

Parameters:
chainResultsSummary -
plan - optional, to avoid costly plan lookup

getArtifactLinksForLinkType

@NotNull
java.util.Collection<ArtifactLink> getArtifactLinksForLinkType(@NotNull
                                                                       ResultsSummary resultsSummary,
                                                                       @NotNull
                                                                       java.lang.String linkType)
Gets all the ArtifactLinks for the given ResultsSummary and ArtifactLink.getLinkType()

Parameters:
resultsSummary -
linkType -
Returns:
artifactLinks
Since:
3.0


Copyright © 2012 Atlassian. All Rights Reserved.