com.atlassian.bamboo.build.artifact
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, BambooObject, java.lang.Cloneable
public class DefaultArtifactLink
- extends BambooEntityObject
- implements ArtifactLink
This class is a simple POJO representing artifact links.
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 |
DefaultArtifactLink
protected DefaultArtifactLink()
- Default constructor for use with Hibernate
DefaultArtifactLink
public DefaultArtifactLink(java.lang.String label,
BuildResultsSummary buildResultsSummary)
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.