com.atlassian.bamboo.artifact
Class MutableArtifactImpl

java.lang.Object
  extended by com.atlassian.core.bean.EntityObject
      extended by com.atlassian.bamboo.core.BambooEntityObject
          extended by com.atlassian.bamboo.artifact.MutableArtifactImpl
All Implemented Interfaces:
Artifact, MutableArtifact, BambooIdProvider, BambooObject, java.lang.Cloneable

public class MutableArtifactImpl
extends BambooEntityObject
implements MutableArtifact


Field Summary
 
Fields inherited from class com.atlassian.bamboo.core.BambooEntityObject
id
 
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
 
Constructor Summary
MutableArtifactImpl()
           
MutableArtifactImpl(java.lang.String label, PlanResultKey planResultKey, java.lang.String linkType, boolean sharedArtifact)
           
MutableArtifactImpl(java.lang.String label, PlanResultKey planResultKey, java.lang.String linkType, boolean sharedArtifact, java.lang.Long persistedSize)
           
 
Method Summary
 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.
 boolean isGloballyStored()
          Indicates that the artifact is stored globally (i.e.
 boolean isSharedArtifact()
          Indicates if the artifact is a shared artifact.
 void setGloballyStored(boolean isGloballyStored)
           
 void setLabel(java.lang.String label)
           
 void setLinkType(java.lang.String linkType)
           
 void setPlanResultKey(PlanResultKey planResultKey)
           
 void setSharedArtifact(boolean sharedArtifact)
           
 void setSize(java.lang.Long persistedSize)
           
 
Methods inherited from class com.atlassian.bamboo.core.BambooEntityObject
equals, getId, hashCode, setId
 
Methods inherited from class com.atlassian.core.bean.EntityObject
clone, getCreationDate, getCurrentDate, getLastModificationDate, setClock, setCreationDate, setLastModificationDate
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
 
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
 

Constructor Detail

MutableArtifactImpl

public MutableArtifactImpl()

MutableArtifactImpl

public MutableArtifactImpl(java.lang.String label,
                           PlanResultKey planResultKey,
                           java.lang.String linkType,
                           boolean sharedArtifact)

MutableArtifactImpl

public MutableArtifactImpl(java.lang.String label,
                           PlanResultKey planResultKey,
                           java.lang.String linkType,
                           boolean sharedArtifact,
                           java.lang.Long persistedSize)
Method Detail

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.

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:

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

setLabel

public void setLabel(java.lang.String label)
Specified by:
setLabel in interface MutableArtifact

setSize

public void setSize(java.lang.Long persistedSize)
Specified by:
setSize in interface MutableArtifact

setSharedArtifact

public void setSharedArtifact(boolean sharedArtifact)
Specified by:
setSharedArtifact in interface MutableArtifact

setLinkType

public void setLinkType(java.lang.String linkType)
Specified by:
setLinkType in interface MutableArtifact

setPlanResultKey

public void setPlanResultKey(PlanResultKey planResultKey)
Specified by:
setPlanResultKey in interface MutableArtifact

setGloballyStored

public void setGloballyStored(boolean isGloballyStored)
Specified by:
setGloballyStored in interface MutableArtifact


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