public class ArtifactImpl extends Object implements Artifact, Serializable
SYSTEM_LINK_TYPE
Constructor and Description |
---|
ArtifactImpl(Artifact other) |
Modifier and Type | Method and Description |
---|---|
ArchiverType |
getArchiverType()
Returns the type of archiver used for packaging files of this artifact.
|
long |
getId() |
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.
|
static ArtifactImpl |
globallyStoredCopyOf(Artifact other) |
boolean |
isGloballyStored()
Indicates that the artifact is stored globally (i.e.
|
boolean |
isSharedArtifact()
Indicates if the artifact is a shared artifact.
|
public ArtifactImpl(Artifact other)
public static ArtifactImpl globallyStoredCopyOf(Artifact other)
@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
public boolean isGloballyStored()
Artifact
isGloballyStored
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 long getId()
getId
in interface BambooIdProvider
@NotNull public ArchiverType getArchiverType()
Artifact
ArchiverType.NONE
should be returned.getArchiverType
in interface Artifact
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.