Class RestArtifact
java.lang.Object
com.atlassian.bamboo.rest.model.artifact.RestArtifact
- All Implemented Interfaces:
Artifact
,BambooIdProvider
-
Field Summary
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull ArchiverType
Returns the type of archiver used for packaging files of this artifact.long
getId()
@NotNull String
getLabel()
Label of the Artifact@NotNull String
Type of artifact link@NotNull PlanResultKey
Get key ofResultsSummary
that owns thisArtifact
.long
getSize()
Returns a file size in bytes.boolean
Indicates that the artifact is stored globally (i.e.boolean
Indicates if the artifact is a shared artifact.
-
Constructor Details
-
RestArtifact
-
-
Method Details
-
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
Description copied from interface:Artifact
Type of artifact link- Specified by:
getLinkType
in interfaceArtifact
- Returns:
- linkType
-
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
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
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
-