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
ConstructorDescriptionMutableArtifactImpl
(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 ArchiverType
Returns the type of archiver used for packaging files of this artifact.@NotNull String
getLabel()
Label of the Artifact@NotNull String
Type of artifact link@NotNull PlanResultKey
Get key ofResultsSummary
that owns thisArtifact
.long
getSize()
Returns a file size in bytes.boolean
Indicates that the artifact is stored globally (i.e.boolean
Indicates if the artifact is a shared artifact.void
setArchiverType
(@NotNull ArchiverType archiverType) void
setGloballyStored
(boolean isGloballyStored) void
void
setLinkType
(String linkType) void
setPlanResultKey
(PlanResultKey planResultKey) void
setSharedArtifact
(boolean sharedArtifact) void
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 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:Artifact
Label of the Artifact -
getSize
public long getSize()Description copied from interface:Artifact
Returns a file size in bytes. -
getLinkType
Description copied from interface:Artifact
Type of artifact link- Specified by:
getLinkType
in interfaceArtifact
- Returns:
- linkType
-
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
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
- Specified by:
setLabel
in interfaceMutableArtifact
-
setSize
- Specified by:
setSize
in interfaceMutableArtifact
-
setLinkType
- Specified by:
setLinkType
in interfaceMutableArtifact
-
setPlanResultKey
- Specified by:
setPlanResultKey
in interfaceMutableArtifact
-
setGloballyStored
public void setGloballyStored(boolean isGloballyStored) - Specified by:
setGloballyStored
in interfaceMutableArtifact
-
setArchiverType
- Specified by:
setArchiverType
in interfaceMutableArtifact
-