Package com.atlassian.bamboo.artifact
Class MutableArtifactImpl
- java.lang.Object
-
- com.atlassian.core.bean.EntityObject
-
- com.atlassian.bamboo.core.BambooEntityObject
-
- com.atlassian.bamboo.hibernate.HibernateBambooEntityObject
-
- com.atlassian.bamboo.artifact.MutableArtifactImpl
-
- All Implemented Interfaces:
Artifact,MutableArtifact,BambooIdProvider,BambooObject,Cloneable
@Entity public class MutableArtifactImpl extends HibernateBambooEntityObject implements MutableArtifact
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
-
-
Constructor Summary
Constructors Constructor Description MutableArtifactImpl()MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact)MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact, Long persistedSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ArchiverTypegetArchiverType()Returns the type of archiver used for packaging files of this artifact.@NotNull StringgetLabel()Label of the Artifact@NotNull StringgetLinkType()Type of artifact link@NotNull PlanResultKeygetPlanResultKey()Get key ofResultsSummarythat owns thisArtifact.longgetSize()Returns a file size in bytes.booleanisGloballyStored()Indicates that the artifact is stored globally (i.e. not in plan specific catalogue)booleanisSharedArtifact()Indicates if the artifact is a shared artifact.voidsetArchiverType(@NotNull ArchiverType archiverType)voidsetGloballyStored(boolean isGloballyStored)voidsetLabel(String label)voidsetLinkType(String linkType)voidsetPlanResultKey(PlanResultKey planResultKey)voidsetSharedArtifact(boolean sharedArtifact)voidsetSize(Long persistedSize)-
Methods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityObject
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
-
Methods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getId
-
Methods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
-
-
-
Constructor Detail
-
MutableArtifactImpl
public MutableArtifactImpl()
-
MutableArtifactImpl
public MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact)
-
MutableArtifactImpl
public MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact, Long persistedSize)
-
-
Method Detail
-
getLabel
@NotNull public @NotNull String getLabel()
Description copied from interface:ArtifactLabel of the Artifact
-
getSize
public long getSize()
Description copied from interface:ArtifactReturns a file size in bytes.
-
getLinkType
@NotNull public @NotNull String getLinkType()
Description copied from interface:ArtifactType of artifact link- Specified by:
getLinkTypein interfaceArtifact- Returns:
- linkType
-
isSharedArtifact
public boolean isSharedArtifact()
Description copied from interface:ArtifactIndicates if the artifact is a shared artifact.- Specified by:
isSharedArtifactin interfaceArtifact- Returns:
- true if artifact is a shared artifact.
-
getPlanResultKey
@NotNull public @NotNull PlanResultKey getPlanResultKey()
Description copied from interface:ArtifactGet key ofResultsSummarythat owns thisArtifact. Can be both Job or Plan result. May point to result which is already removed.- Specified by:
getPlanResultKeyin interfaceArtifact- Returns:
-
isGloballyStored
public boolean isGloballyStored()
Description copied from interface:ArtifactIndicates that the artifact is stored globally (i.e. not in plan specific catalogue)- Specified by:
isGloballyStoredin interfaceArtifact
-
getArchiverType
@NotNull public @NotNull ArchiverType getArchiverType()
Description copied from interface:ArtifactReturns the type of archiver used for packaging files of this artifact. If artifact files were not packaged,ArchiverType.NONEshould be returned.- Specified by:
getArchiverTypein interfaceArtifact
-
setLabel
public void setLabel(String label)
- Specified by:
setLabelin interfaceMutableArtifact
-
setSize
public void setSize(Long persistedSize)
- Specified by:
setSizein interfaceMutableArtifact
-
setSharedArtifact
public void setSharedArtifact(boolean sharedArtifact)
- Specified by:
setSharedArtifactin interfaceMutableArtifact
-
setLinkType
public void setLinkType(String linkType)
- Specified by:
setLinkTypein interfaceMutableArtifact
-
setPlanResultKey
public void setPlanResultKey(PlanResultKey planResultKey)
- Specified by:
setPlanResultKeyin interfaceMutableArtifact
-
setGloballyStored
public void setGloballyStored(boolean isGloballyStored)
- Specified by:
setGloballyStoredin interfaceMutableArtifact
-
setArchiverType
public void setArchiverType(@NotNull @NotNull ArchiverType archiverType)- Specified by:
setArchiverTypein interfaceMutableArtifact
-
-