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 ArchiverType
getArchiverType()
Returns the type of archiver used for packaging files of this artifact.@NotNull String
getLabel()
Label of the Artifact@NotNull String
getLinkType()
Type of artifact link@NotNull PlanResultKey
getPlanResultKey()
Get key ofResultsSummary
that owns thisArtifact
.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
setArchiverType(@NotNull ArchiverType archiverType)
void
setGloballyStored(boolean isGloballyStored)
void
setLabel(String label)
void
setLinkType(String linkType)
void
setPlanResultKey(PlanResultKey planResultKey)
void
setSharedArtifact(boolean sharedArtifact)
void
setSize(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:Artifact
Label of the Artifact
-
getSize
public long getSize()
Description copied from interface:Artifact
Returns a file size in bytes.
-
getLinkType
@NotNull public @NotNull String getLinkType()
Description copied from interface:Artifact
Type of artifact link- Specified by:
getLinkType
in interfaceArtifact
- Returns:
- linkType
-
isSharedArtifact
public boolean isSharedArtifact()
Description copied from interface:Artifact
Indicates if the artifact is a shared artifact.- Specified by:
isSharedArtifact
in interfaceArtifact
- Returns:
- true if artifact is a shared artifact.
-
getPlanResultKey
@NotNull public @NotNull PlanResultKey getPlanResultKey()
Description copied from interface:Artifact
Get key ofResultsSummary
that owns thisArtifact
. Can be both Job or Plan result. May point to result which is already removed.- Specified by:
getPlanResultKey
in interfaceArtifact
- 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 interfaceArtifact
-
getArchiverType
@NotNull public @NotNull ArchiverType getArchiverType()
Description copied from interface:Artifact
Returns the type of archiver used for packaging files of this artifact. If artifact files were not packaged,ArchiverType.NONE
should be returned.- Specified by:
getArchiverType
in interfaceArtifact
-
setLabel
public void setLabel(String label)
- Specified by:
setLabel
in interfaceMutableArtifact
-
setSize
public void setSize(Long persistedSize)
- Specified by:
setSize
in interfaceMutableArtifact
-
setSharedArtifact
public void setSharedArtifact(boolean sharedArtifact)
- Specified by:
setSharedArtifact
in interfaceMutableArtifact
-
setLinkType
public void setLinkType(String linkType)
- Specified by:
setLinkType
in interfaceMutableArtifact
-
setPlanResultKey
public void setPlanResultKey(PlanResultKey planResultKey)
- Specified by:
setPlanResultKey
in interfaceMutableArtifact
-
setGloballyStored
public void setGloballyStored(boolean isGloballyStored)
- Specified by:
setGloballyStored
in interfaceMutableArtifact
-
setArchiverType
public void setArchiverType(@NotNull @NotNull ArchiverType archiverType)
- Specified by:
setArchiverType
in interfaceMutableArtifact
-
-