@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 |
---|---|
ArchiverType |
getArchiverType()
Returns the type of archiver used for packaging files of this artifact.
|
String |
getLabel()
Label of the Artifact
|
String |
getLinkType()
Type of artifact link
|
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(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 String getLabel()
Artifact
public long getSize()
Artifact
@NotNull public String getLinkType()
Artifact
getLinkType
in interface Artifact
public boolean isSharedArtifact()
Artifact
isSharedArtifact
in interface Artifact
@NotNull public 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 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 ArchiverType archiverType)
setArchiverType
in interface MutableArtifact
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.