@Entity public class DefaultArtifactLink extends BambooEntityObject implements ArtifactLink
BASE_URL, SYSTEM_LINK_TYPE
Modifier | Constructor and Description |
---|---|
protected |
DefaultArtifactLink() |
|
DefaultArtifactLink(ArtifactDefinitionContext artifactDefinitionContext,
BuildResultsSummary producerResult,
ArtifactHandlerPublishingResult publishingResult) |
protected |
DefaultArtifactLink(String name,
boolean sharedArtifact,
BuildResultsSummary producerResult,
String linkType,
Long size) |
|
DefaultArtifactLink(String name,
boolean sharedArtifact,
ResultsSummary planResultsSummary,
BuildResultsSummary producerJobResult,
String linkType,
Long size) |
Modifier and Type | Method and Description |
---|---|
static DefaultArtifactLink |
createForExport(long artifactLinkId,
ResultsSummary buildResultsSummary,
Optional<? extends BuildResultsSummary> producerJobResult,
MutableArtifact artifact)
Create DefaultArtifactLink for use in export mapper
|
MutableArtifact |
getArtifact() |
ResultsSummary |
getBuildResultsSummary() |
String |
getLabel()
Label of the Artifact
|
String |
getLinkType()
Type of artifact link
|
BuildResultsSummary |
getProducerJobResult() |
long |
getSize()
Returns a file size in bytes
|
List<ConsumedSubscription> |
getSubscriptions() |
boolean |
isSharedArtifact()
Indicates if the artifact is a shared artifact.
|
void |
setArtifact(MutableArtifact artifact) |
protected void |
setBuildResultsSummary(ResultsSummary resultsSummary) |
void |
setProducerJobResult(BuildResultsSummary producerJobResult) |
protected void |
setSubscriptions(List<ConsumedSubscription> subscriptions) |
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public DefaultArtifactLink(@NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull BuildResultsSummary producerResult, @NotNull ArtifactHandlerPublishingResult publishingResult)
protected DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull BuildResultsSummary producerResult, String linkType, Long size)
protected DefaultArtifactLink()
public DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull ResultsSummary planResultsSummary, @Nullable BuildResultsSummary producerJobResult, String linkType, Long size)
public static DefaultArtifactLink createForExport(long artifactLinkId, ResultsSummary buildResultsSummary, Optional<? extends BuildResultsSummary> producerJobResult, MutableArtifact artifact)
@NotNull public String getLinkType()
ArtifactLink
getLinkType
in interface ArtifactLink
@NotNull public String getLabel()
ArtifactLink
getLabel
in interface ArtifactLink
public long getSize()
ArtifactLink
getSize
in interface ArtifactLink
public ResultsSummary getBuildResultsSummary()
getBuildResultsSummary
in interface ArtifactLink
ResultsSummary
which this artifact link belongs to. May be null if still not associated with ResultsSummaryprotected void setBuildResultsSummary(ResultsSummary resultsSummary)
@Nullable public BuildResultsSummary getProducerJobResult()
getProducerJobResult
in interface ArtifactLink
ResultsSummary
of the Job that produced this artifact. May be null if still not associated with
ResultsSummary or if it has been removed but artifact still exists.public void setProducerJobResult(@Nullable BuildResultsSummary producerJobResult)
public boolean isSharedArtifact()
ArtifactLink
isSharedArtifact
in interface ArtifactLink
public List<ConsumedSubscription> getSubscriptions()
getSubscriptions
in interface ArtifactLink
protected void setSubscriptions(List<ConsumedSubscription> subscriptions)
@NotNull public MutableArtifact getArtifact()
getArtifact
in interface ArtifactLink
public void setArtifact(MutableArtifact artifact)
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.