com.atlassian.bamboo.build.artifact
Interface ArtifactLink

All Superinterfaces:
BambooIdProvider, BambooObject
All Known Implementing Classes:
DefaultArtifactLink

public interface ArtifactLink
extends BambooObject

Interface for a simple Artifact


Field Summary
static java.lang.String BASE_URL
           
static java.lang.String SYSTEM_LINK_TYPE
          Default 'system' getLinkType()
 
Method Summary
 MutableArtifact getArtifact()
           
 ResultsSummary getBuildResultsSummary()
           
 java.io.File getFile()
          Deprecated. since 4.3, if you need this method, please let the Bamboo team know
 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()
          Deprecated. 
 java.util.List<ConsumedSubscription> getSubscriptions()
           
 java.lang.String getUrl()
          Deprecated. since 4.4 use $ArtifactLinkManager.getArtifactLinkDataProvider(ArtifactLink)
 boolean isExists()
          Deprecated. since 4.4 use $ArtifactLinkManager.getArtifactLinkDataProvider(ArtifactLink)
 boolean isSharedArtifact()
          Indicates if the artifact is a shared artifact.
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Field Detail

SYSTEM_LINK_TYPE

static final java.lang.String SYSTEM_LINK_TYPE
Default 'system' getLinkType()

See Also:
Constant Field Values

BASE_URL

static final java.lang.String BASE_URL
See Also:
Constant Field Values
Method Detail

getLabel

@NotNull
java.lang.String getLabel()
Label of the Artifact

Returns:
label

getUrl

@Nullable
@Deprecated
java.lang.String getUrl()
Deprecated. since 4.4 use $ArtifactLinkManager.getArtifactLinkDataProvider(ArtifactLink)

URL of the artifact

Returns:
url

isExists

@Deprecated
boolean isExists()
Deprecated. since 4.4 use $ArtifactLinkManager.getArtifactLinkDataProvider(ArtifactLink)

If the artifact link exists

Returns:
true if the artifact exists, false otherwise

getFile

@Nullable
@Deprecated
java.io.File getFile()
Deprecated. since 4.3, if you need this method, please let the Bamboo team know

Accessor for the actual file handle of the artifact.

Returns:
a File object pointing to either the file or directory of this artifact

isSharedArtifact

boolean isSharedArtifact()
Indicates if the artifact is a shared artifact.

Returns:
true if artifact is a shared artifact.

getSize

long getSize()
Returns a file size in bytes

Returns:

getSizeDescription

@NotNull
@Deprecated
java.lang.String getSizeDescription()
Deprecated. 

Returns a human-readable version of the file size, where the input represents a specific number of bytes.

Returns:
size description

getBuildResultsSummary

@Nullable
ResultsSummary getBuildResultsSummary()
Returns:
ResultsSummary which this artifact link belongs to. May be null if still not associated with ResultsSummary

getProducerJobResult

@Nullable
BuildResultsSummary getProducerJobResult()
Returns:
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.

getSubscriptions

java.util.List<ConsumedSubscription> getSubscriptions()

getLinkType

@NotNull
java.lang.String getLinkType()
Type of artifact link

Returns:
linkType

getArtifact

@NotNull
MutableArtifact getArtifact()


Copyright © 2013 Atlassian Software Systems Pty Ltd. All Rights Reserved.