Class DefaultArtifactLink
java.lang.Object
com.atlassian.core.bean.EntityObject
com.atlassian.bamboo.core.BambooEntityObject
com.atlassian.bamboo.build.artifact.DefaultArtifactLink
- All Implemented Interfaces:
ArtifactLink,BambooIdProvider,BambooObject,Cloneable
This class is a simple POJO representing artifact links.
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.build.artifact.ArtifactLink
BASE_URL, SYSTEM_LINK_TYPE -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefaultArtifactLink(@NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull BuildResultsSummary producerResult, @NotNull ArtifactHandlerPublishingResult publishingResult, @NotNull ChainStorageTag storageTag) protectedDefaultArtifactLink(String name, boolean sharedArtifact, @NotNull BuildResultsSummary producerResult, String linkType, Long size, ChainStorageTag storageTag) DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull ResultsSummary planResultsSummary, @Nullable BuildResultsSummary producerJobResult, String linkType, Long size, ChainStorageTag storageTag) -
Method Summary
Modifier and TypeMethodDescriptionstatic DefaultArtifactLinkcreateForExport(long artifactLinkId, ResultsSummary buildResultsSummary, Optional<? extends BuildResultsSummary> producerJobResult, MutableArtifact artifact) Create DefaultArtifactLink for use in export mapper@NotNull MutableArtifact@NotNull StringgetLabel()Label of the Artifact@NotNull StringType of artifact link@Nullable BuildResultsSummarybooleanIndicates if the artifact is a shared artifact.voidsetArtifact(MutableArtifact artifact) protected voidsetBuildResultsSummary(ResultsSummary resultsSummary) voidsetProducerJobResult(@Nullable BuildResultsSummary producerJobResult) protected voidsetSubscriptions(List<ConsumedSubscription> subscriptions) Methods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getId, getLastModificationDate, hashCode, setClock, setCreationDate, setId, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
DefaultArtifactLink
public DefaultArtifactLink(@NotNull @NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull @NotNull BuildResultsSummary producerResult, @NotNull @NotNull ArtifactHandlerPublishingResult publishingResult, @NotNull @NotNull ChainStorageTag storageTag) -
DefaultArtifactLink
protected DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull @NotNull BuildResultsSummary producerResult, String linkType, Long size, ChainStorageTag storageTag) -
DefaultArtifactLink
protected DefaultArtifactLink() -
DefaultArtifactLink
public DefaultArtifactLink(String name, boolean sharedArtifact, @NotNull @NotNull ResultsSummary planResultsSummary, @Nullable @Nullable BuildResultsSummary producerJobResult, String linkType, Long size, ChainStorageTag storageTag)
-
-
Method Details
-
createForExport
public static DefaultArtifactLink createForExport(long artifactLinkId, ResultsSummary buildResultsSummary, Optional<? extends BuildResultsSummary> producerJobResult, MutableArtifact artifact) Create DefaultArtifactLink for use in export mapper -
getLinkType
Description copied from interface:ArtifactLinkType of artifact link- Specified by:
getLinkTypein interfaceArtifactLink- Returns:
- linkType
-
getLabel
Description copied from interface:ArtifactLinkLabel of the Artifact- Specified by:
getLabelin interfaceArtifactLink- Returns:
- label
-
getBuildResultsSummary
- Specified by:
getBuildResultsSummaryin interfaceArtifactLink- Returns:
ResultsSummarywhich this artifact link belongs to. May be null if still not associated with ResultsSummary
-
setBuildResultsSummary
-
getProducerJobResult
- Specified by:
getProducerJobResultin interfaceArtifactLink- Returns:
ResultsSummaryof 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.
-
setProducerJobResult
-
getSubscriptions
- Specified by:
getSubscriptionsin interfaceArtifactLink
-
setSubscriptions
-
getArtifact
- Specified by:
getArtifactin interfaceArtifactLink
-
setArtifact
-