Package com.atlassian.bamboo.artifact
Class ArtifactImpl
- java.lang.Object
-
- com.atlassian.bamboo.artifact.ArtifactImpl
-
- All Implemented Interfaces:
Artifact
,BambooIdProvider
,Serializable
- Direct Known Subclasses:
ArtifactDataImpl
public class ArtifactImpl extends Object implements Artifact, Serializable
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
-
-
Constructor Summary
Constructors Constructor Description ArtifactImpl(Artifact other)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull ArchiverType
getArchiverType()
Returns the type of archiver used for packaging files of this artifact.long
getId()
@NotNull String
getLabel()
Label of the Artifact@NotNull String
getLinkType()
Type of artifact link@NotNull PlanResultKey
getPlanResultKey()
Get key ofResultsSummary
that owns thisArtifact
.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.
-
-
-
Constructor Detail
-
ArtifactImpl
public ArtifactImpl(Artifact other)
-
-
Method Detail
-
globallyStoredCopyOf
public static ArtifactImpl globallyStoredCopyOf(Artifact other)
-
getLabel
@NotNull public @NotNull String 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
@NotNull public @NotNull String getLinkType()
Description copied from interface:Artifact
Type of artifact link- Specified by:
getLinkType
in interfaceArtifact
- Returns:
- linkType
-
isSharedArtifact
public boolean isSharedArtifact()
Description copied from interface:Artifact
Indicates if the artifact is a shared artifact.- Specified by:
isSharedArtifact
in interfaceArtifact
- Returns:
- true if artifact is a shared artifact.
-
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
-
getPlanResultKey
@NotNull public @NotNull PlanResultKey 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:
-
getId
public long getId()
- Specified by:
getId
in interfaceBambooIdProvider
-
getArchiverType
@NotNull public @NotNull ArchiverType 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
-
-