@Entity public class MutableArtifactImpl extends HibernateBambooEntityObject implements MutableArtifact
SYSTEM_LINK_TYPE
Constructor and Description |
---|
MutableArtifactImpl() |
MutableArtifactImpl(String label,
PlanResultKey planResultKey,
String linkType,
boolean sharedArtifact) |
MutableArtifactImpl(String label,
PlanResultKey planResultKey,
String linkType,
boolean sharedArtifact,
Long persistedSize) |
Modifier and Type | Method and 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 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 |
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) |
getId, setId
clone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDate
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
setId
getId
public MutableArtifactImpl()
public MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact)
public MutableArtifactImpl(String label, PlanResultKey planResultKey, String linkType, boolean sharedArtifact, Long persistedSize)
@NotNull public @NotNull String getLabel()
Artifact
public long getSize()
Artifact
@NotNull public @NotNull String getLinkType()
Artifact
getLinkType
in interface Artifact
public boolean isSharedArtifact()
Artifact
isSharedArtifact
in interface Artifact
@NotNull public @NotNull PlanResultKey getPlanResultKey()
Artifact
ResultsSummary
that owns this Artifact
.
Can be both Job or Plan result.
May point to result which is already removed.getPlanResultKey
in interface Artifact
public boolean isGloballyStored()
Artifact
isGloballyStored
in interface Artifact
@NotNull public @NotNull ArchiverType getArchiverType()
Artifact
ArchiverType.NONE
should be returned.getArchiverType
in interface Artifact
public void setLabel(String label)
setLabel
in interface MutableArtifact
public void setSize(Long persistedSize)
setSize
in interface MutableArtifact
public void setSharedArtifact(boolean sharedArtifact)
setSharedArtifact
in interface MutableArtifact
public void setLinkType(String linkType)
setLinkType
in interface MutableArtifact
public void setPlanResultKey(PlanResultKey planResultKey)
setPlanResultKey
in interface MutableArtifact
public void setGloballyStored(boolean isGloballyStored)
setGloballyStored
in interface MutableArtifact
public void setArchiverType(@NotNull @NotNull ArchiverType archiverType)
setArchiverType
in interface MutableArtifact
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.