com.atlassian.bamboo.artifact
Class ArtifactImpl

java.lang.Object
  extended by com.atlassian.bamboo.artifact.ArtifactImpl
All Implemented Interfaces:
Artifact, BambooIdProvider, java.io.Serializable

public class ArtifactImpl
extends java.lang.Object
implements Artifact, java.io.Serializable

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
 
Constructor Summary
ArtifactImpl(Artifact other)
           
 
Method Summary
 long getId()
           
 java.lang.String getLabel()
          Label of the Artifact
 java.lang.String getLinkType()
          Type of artifact link
 PlanResultKey getPlanResultKey()
          Get key of ResultsSummary that owns this Artifact.
 long getSize()
          Returns a file size in bytes.
static ArtifactImpl globallyStoredCopyOf(Artifact other)
           
 boolean isGloballyStored()
          Indicates that the artifact is stored globally (i.e.
 boolean isSharedArtifact()
          Indicates if the artifact is a shared artifact.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtifactImpl

public ArtifactImpl(Artifact other)
Method Detail

globallyStoredCopyOf

public static ArtifactImpl globallyStoredCopyOf(Artifact other)

getLabel

@NotNull
public java.lang.String getLabel()
Description copied from interface: Artifact
Label of the Artifact

Specified by:
getLabel in interface Artifact
Returns:
label

getSize

public long getSize()
Description copied from interface: Artifact
Returns a file size in bytes.

Specified by:
getSize in interface Artifact
Returns:

getLinkType

@NotNull
public java.lang.String getLinkType()
Description copied from interface: Artifact
Type of artifact link

Specified by:
getLinkType in interface Artifact
Returns:
linkType

isSharedArtifact

public boolean isSharedArtifact()
Description copied from interface: Artifact
Indicates if the artifact is a shared artifact.

Specified by:
isSharedArtifact in interface Artifact
Returns:
true if artifact is a shared artifact.

isGloballyStored

public boolean isGloballyStored()
Description copied from interface: Artifact
Indicates that the artifact is stored globally (i.e. not in plan specific catalogue)

Specified by:
isGloballyStored in interface Artifact

getPlanResultKey

@NotNull
public PlanResultKey getPlanResultKey()
Description copied from interface: Artifact
Get key of ResultsSummary that owns this Artifact. Can be both Job or Plan result. May point to result which is already removed.

Specified by:
getPlanResultKey in interface Artifact
Returns:

getId

public long getId()
Specified by:
getId in interface BambooIdProvider


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