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
- See Also:
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ArchiverTypeReturns the type of archiver used for packaging files of this artifact.longgetId()@NotNull StringgetLabel()Label of the Artifact@NotNull StringType of artifact link@NotNull PlanResultKeyGet key ofResultsSummarythat owns thisArtifact.longgetSize()Returns a file size in bytes.static ArtifactImplgloballyStoredCopyOf(Artifact other) booleanIndicates that the artifact is stored globally (i.e.booleanIndicates if the artifact is a shared artifact.
-
Constructor Details
-
ArtifactImpl
-
-
Method Details
-
globallyStoredCopyOf
-
getLabel
Description copied from interface:ArtifactLabel of the Artifact -
getSize
public long getSize()Description copied from interface:ArtifactReturns a file size in bytes. -
getLinkType
Description copied from interface:ArtifactType of artifact link- Specified by:
getLinkTypein interfaceArtifact- Returns:
- linkType
-
isGloballyStored
public boolean isGloballyStored()Description copied from interface:ArtifactIndicates that the artifact is stored globally (i.e. not in plan specific catalogue)- Specified by:
isGloballyStoredin interfaceArtifact
-
getPlanResultKey
Description copied from interface:ArtifactGet key ofResultsSummarythat owns thisArtifact. Can be both Job or Plan result. May point to result which is already removed.- Specified by:
getPlanResultKeyin interfaceArtifact- Returns:
-
getId
public long getId()- Specified by:
getIdin interfaceBambooIdProvider
-
getArchiverType
Description copied from interface:ArtifactReturns the type of archiver used for packaging files of this artifact. If artifact files were not packaged,ArchiverType.NONEshould be returned.- Specified by:
getArchiverTypein interfaceArtifact
-