|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.atlassian.core.bean.EntityObject com.atlassian.bamboo.core.BambooEntityObject com.atlassian.bamboo.build.artifact.DefaultArtifactLink
public class DefaultArtifactLink
This class is a simple POJO representing artifact links.
Field Summary |
---|
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
id |
Fields inherited from interface com.atlassian.bamboo.build.artifact.ArtifactLink |
---|
SYSTEM_LINK_TYPE |
Constructor Summary | |
---|---|
protected |
DefaultArtifactLink()
Default constructor for use with Hibernate |
|
DefaultArtifactLink(ArtifactDefinitionBase artifactDefinitionBase,
BuildResultsSummary producerResult)
|
|
DefaultArtifactLink(ArtifactDefinitionContext context,
BuildResultsSummary producerResult)
|
protected |
DefaultArtifactLink(ArtifactDefinitionContext artifactDefinitionContext,
BuildResultsSummary producerResult,
ChainResultsSummary planResultsSummary)
|
|
DefaultArtifactLink(ArtifactDefinitionContext artifactDefinitionContext,
ChainResultsSummary planResultsSummary)
|
Method Summary | |
---|---|
void |
calculateSize()
|
ResultsSummary |
getBuildResultsSummary()
|
java.io.File |
getFile()
Accessor for the actual file handle of the artifact. |
java.lang.String |
getLabel()
Label of the Artifact |
java.lang.String |
getLinkType()
Type of artifact link |
BuildResultsSummary |
getProducerJobResult()
|
long |
getSize()
Returns a file size in bytes |
java.lang.String |
getSizeDescription()
Returns a human-readable version of the file size, where the input represents a specific number of bytes. |
java.util.List<ConsumedSubscription> |
getSubscriptions()
|
java.lang.String |
getUrl()
URL of the artifact relative to AdministrationConfiguration.getBaseUrl() |
java.lang.String |
getUrlSuffix()
|
boolean |
isExists()
If the artifact link exists |
boolean |
isSharedArtifact()
Indicates if the artifact is a shared artifact. |
protected void |
setBuildResultsSummary(ResultsSummary resultsSummary)
|
protected void |
setLabel(java.lang.String label)
|
void |
setLinkType(java.lang.String linkType)
|
void |
setProducerJobResult(BuildResultsSummary producerJobResult)
|
protected void |
setSharedArtifact(boolean sharedArtifact)
|
protected void |
setSize(long size)
|
void |
setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
|
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject |
---|
getId, setId |
Methods inherited from class com.atlassian.core.bean.EntityObject |
---|
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.atlassian.bamboo.core.BambooObject |
---|
getId, setId |
Constructor Detail |
---|
protected DefaultArtifactLink()
public DefaultArtifactLink(@NotNull ArtifactDefinitionContext context, @NotNull BuildResultsSummary producerResult)
public DefaultArtifactLink(@NotNull ArtifactDefinitionBase artifactDefinitionBase, @NotNull BuildResultsSummary producerResult)
public DefaultArtifactLink(@NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull ChainResultsSummary planResultsSummary)
protected DefaultArtifactLink(@NotNull ArtifactDefinitionContext artifactDefinitionContext, @NotNull BuildResultsSummary producerResult, @NotNull ChainResultsSummary planResultsSummary)
Method Detail |
---|
@NotNull public java.lang.String getLinkType()
ArtifactLink
getLinkType
in interface ArtifactLink
public void setLinkType(@NotNull java.lang.String linkType)
@NotNull public java.lang.String getLabel()
ArtifactLink
getLabel
in interface ArtifactLink
protected void setLabel(@NotNull java.lang.String label)
@Nullable public java.lang.String getUrl()
ArtifactLink
AdministrationConfiguration.getBaseUrl()
getUrl
in interface ArtifactLink
public java.lang.String getUrlSuffix()
public void calculateSize()
public long getSize()
ArtifactLink
getSize
in interface ArtifactLink
protected void setSize(long size)
public boolean isExists()
ArtifactLink
isExists
in interface ArtifactLink
@NotNull public java.io.File getFile()
ArtifactLink
getFile
in interface ArtifactLink
@NotNull public java.lang.String getSizeDescription()
ArtifactLink
getSizeDescription
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
protected void setSharedArtifact(boolean sharedArtifact)
public java.util.List<ConsumedSubscription> getSubscriptions()
getSubscriptions
in interface ArtifactLink
public void setSubscriptions(java.util.List<ConsumedSubscription> subscriptions)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |