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
ConstructorsConstructorDescriptionMutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact) MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact, Long persistedSize) -
Method Summary
Modifier and TypeMethodDescription@NotNull ArchiverTypeReturns the type of archiver used for packaging files of this artifact.@NotNull StringgetLabel()Label of the Artifact@NotNull StringType of artifact link@NotNull PlanResultKeyGet key ofResultsSummarythat owns thisArtifact.longgetSize()Returns a file size in bytes.booleanIndicates that the artifact is stored globally (i.e.booleanIndicates if the artifact is a shared artifact.voidsetArchiverType(@NotNull ArchiverType archiverType) voidsetGloballyStored(boolean isGloballyStored) voidvoidsetLinkType(String linkType) voidsetPlanResultKey(PlanResultKey planResultKey) voidsetSharedArtifact(boolean sharedArtifact) voidMethods inherited from class com.atlassian.bamboo.hibernate.HibernateBambooEntityObject
getId, setIdMethods inherited from class com.atlassian.core.bean.EntityObject
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDateMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.atlassian.bamboo.core.BambooIdProvider
getIdMethods inherited from interface com.atlassian.bamboo.core.BambooObject
setId
-
Constructor Details
-
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 Details
-
getLabel
Description copied from interface:ArtifactLabel of the Artifact -
getSize
public long getSize()Description copied from interface:ArtifactReturns a file size in bytes. -
getLinkType
Description copied from interface:ArtifactType of artifact link- Specified by:
getLinkTypein interfaceArtifact- Returns:
- linkType
-
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
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
- Specified by:
setLabelin interfaceMutableArtifact
-
setSize
- Specified by:
setSizein interfaceMutableArtifact
-
setLinkType
- Specified by:
setLinkTypein interfaceMutableArtifact
-
setPlanResultKey
- Specified by:
setPlanResultKeyin interfaceMutableArtifact
-
setGloballyStored
public void setGloballyStored(boolean isGloballyStored) - Specified by:
setGloballyStoredin interfaceMutableArtifact
-
setArchiverType
- Specified by:
setArchiverTypein interfaceMutableArtifact
-