@Entity public class DefaultArtifactLink extends BambooEntityObject implements ArtifactLink
BASE_URL, SYSTEM_LINK_TYPE
Modifier | Constructor and Description |
---|---|
protected |
DefaultArtifactLink() |
|
DefaultArtifactLink(@NotNull ArtifactDefinitionContext artifactDefinitionContext,
@NotNull BuildResultsSummary producerResult,
@NotNull ArtifactHandlerPublishingResult publishingResult) |
protected |
DefaultArtifactLink(String name,
boolean sharedArtifact,
@NotNull BuildResultsSummary producerResult,
String linkType,
Long size) |
|
DefaultArtifactLink(String name,
boolean sharedArtifact,
@NotNull ResultsSummary planResultsSummary,
@Nullable 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
|
@NotNull MutableArtifact |
getArtifact() |
ResultsSummary |
getBuildResultsSummary() |
@NotNull String |
getLabel()
Label of the Artifact
|
@NotNull String |
getLinkType()
Type of artifact link
|
@Nullable 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(@Nullable 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 @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactHandlerPublishingResult publishingResult)
protected DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull @NotNull BuildResultsSummary producerResult, String linkType, Long size)
protected DefaultArtifactLink()
public DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull @NotNull ResultsSummary planResultsSummary, @Nullable @Nullable BuildResultsSummary producerJobResult, String linkType, Long size)
public static DefaultArtifactLink createForExport(long artifactLinkId, ResultsSummary buildResultsSummary, Optional<? extends BuildResultsSummary> producerJobResult, MutableArtifact artifact)
@NotNull public @NotNull String getLinkType()
ArtifactLink
getLinkType
in interface ArtifactLink
@NotNull public @NotNull 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 @Nullable 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 @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 @NotNull MutableArtifact getArtifact()
getArtifact
in interface ArtifactLink
public void setArtifact(MutableArtifact artifact)
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.