com.atlassian.bamboo.build.artifact
Class DefaultArtifactLink

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.build.artifact.DefaultArtifactLink
All Implemented Interfaces:
ArtifactLink, BambooObject, java.lang.Cloneable

public class DefaultArtifactLink
extends BambooEntityObject
implements ArtifactLink

This class is a simple POJO representing artifact links.


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Constructor Summary
protected DefaultArtifactLink()
          Default constructor for use with Hibernate
  DefaultArtifactLink(java.lang.String label, BuildResultsSummary buildResultsSummary)
           
 
Method Summary
 BuildResultsSummary getBuildResultsSummary()
           
 java.io.File getFile()
          Accessor for the actual file handle of the artifact.
 java.lang.String getFilePathSuffix()
           
 java.lang.String getLabel()
           
 long getSize()
           
 java.lang.String getSizeDescription()
           
 java.lang.String getUrl()
           
 java.lang.String getUrlSuffix()
           
 boolean isExists()
          If the artifact link exists
protected  void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)
           
protected  void setFilePathSuffix(java.lang.String filePathSuffix)
           
protected  void setLabel(java.lang.String label)
           
protected  void setSize(long size)
           
protected  void setUrlSuffix(java.lang.String urlSuffix)
           
 
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
 

Constructor Detail

DefaultArtifactLink

protected DefaultArtifactLink()
Default constructor for use with Hibernate


DefaultArtifactLink

public DefaultArtifactLink(java.lang.String label,
                           BuildResultsSummary buildResultsSummary)
Method Detail

getLabel

public java.lang.String getLabel()
Specified by:
getLabel in interface ArtifactLink

setLabel

protected void setLabel(java.lang.String label)

getUrl

@Nullable
public java.lang.String getUrl()
Specified by:
getUrl in interface ArtifactLink

getUrlSuffix

public java.lang.String getUrlSuffix()

setUrlSuffix

protected void setUrlSuffix(java.lang.String urlSuffix)

getFilePathSuffix

public java.lang.String getFilePathSuffix()

setFilePathSuffix

protected void setFilePathSuffix(java.lang.String filePathSuffix)

getSize

public long getSize()

setSize

protected void setSize(long size)

isExists

public boolean isExists()
Description copied from interface: ArtifactLink
If the artifact link exists

Specified by:
isExists in interface ArtifactLink
Returns:
true if the artifact exists, false otherwise

getFile

@Nullable
public java.io.File getFile()
Description copied from interface: ArtifactLink
Accessor for the actual file handle of the artifact.

Specified by:
getFile in interface ArtifactLink
Returns:
a File object pointing to either the file or directory of this artifact

getSizeDescription

public java.lang.String getSizeDescription()
Specified by:
getSizeDescription in interface ArtifactLink

getBuildResultsSummary

public BuildResultsSummary getBuildResultsSummary()
Specified by:
getBuildResultsSummary in interface ArtifactLink
Returns:
BuildResultsSummary which this artifact link belongs to. May be null if still not associated with BuildResultsSummary

setBuildResultsSummary

protected void setBuildResultsSummary(BuildResultsSummary buildResultsSummary)


Copyright © 2010 Atlassian. All Rights Reserved.