|
||||||||||
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 |
Constructor Summary | |
---|---|
protected |
DefaultArtifactLink()
Default constructor for use with Hibernate |
|
DefaultArtifactLink(java.lang.String label,
ResultsSummary buildResultsSummary)
|
Method Summary | |
---|---|
ResultsSummary |
getBuildResultsSummary()
|
java.io.File |
getFile()
Accessor for the actual file handle of the artifact. |
java.lang.String |
getFilePathSuffix()
|
java.lang.String |
getLabel()
Label of the Artifact |
long |
getSize()
|
java.lang.String |
getSizeDescription()
Returns a human-readable version of the file size, where the input represents a specific number of bytes. |
java.lang.String |
getUrl()
URL of the artifact relative to AdministrationConfiguration.getBaseUrl() |
java.lang.String |
getUrlSuffix()
|
boolean |
isExists()
If the artifact link exists |
protected void |
setBuildResultsSummary(ResultsSummary resultsSummary)
|
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 |
---|
protected DefaultArtifactLink()
public DefaultArtifactLink(java.lang.String label, ResultsSummary buildResultsSummary)
Method Detail |
---|
public java.lang.String getLabel()
ArtifactLink
getLabel
in interface ArtifactLink
protected void setLabel(java.lang.String label)
@Nullable public java.lang.String getUrl()
ArtifactLink
AdministrationConfiguration.getBaseUrl()
getUrl
in interface ArtifactLink
public java.lang.String getUrlSuffix()
protected void setUrlSuffix(java.lang.String urlSuffix)
public java.lang.String getFilePathSuffix()
protected void setFilePathSuffix(java.lang.String filePathSuffix)
public long getSize()
protected void setSize(long size)
public boolean isExists()
ArtifactLink
isExists
in interface ArtifactLink
@Nullable public java.io.File getFile()
ArtifactLink
getFile
in interface ArtifactLink
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)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |