@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, setIdclone, equals, getCreationDate, getCurrentDate, getLastModificationDate, hashCode, setClock, setCreationDate, setLastModificationDatefinalize, getClass, notify, notifyAll, toString, wait, wait, waitsetIdgetIdpublic 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()
Artifactpublic long getSize()
Artifact@NotNull public @NotNull String getLinkType()
ArtifactgetLinkType in interface Artifactpublic boolean isSharedArtifact()
ArtifactisSharedArtifact in interface Artifact@NotNull public @NotNull PlanResultKey getPlanResultKey()
ArtifactResultsSummary that owns this Artifact.
Can be both Job or Plan result.
May point to result which is already removed.getPlanResultKey in interface Artifactpublic boolean isGloballyStored()
ArtifactisGloballyStored in interface Artifact@NotNull public @NotNull ArchiverType getArchiverType()
ArtifactArchiverType.NONE should be returned.getArchiverType in interface Artifactpublic void setLabel(String label)
setLabel in interface MutableArtifactpublic void setSize(Long persistedSize)
setSize in interface MutableArtifactpublic void setSharedArtifact(boolean sharedArtifact)
setSharedArtifact in interface MutableArtifactpublic void setLinkType(String linkType)
setLinkType in interface MutableArtifactpublic void setPlanResultKey(PlanResultKey planResultKey)
setPlanResultKey in interface MutableArtifactpublic void setGloballyStored(boolean isGloballyStored)
setGloballyStored in interface MutableArtifactpublic void setArchiverType(@NotNull
@NotNull ArchiverType archiverType)
setArchiverType in interface MutableArtifactCopyright © 2023 Atlassian Software Systems Pty Ltd. All rights reserved.