Class RestArtifact
- java.lang.Object
-
- com.atlassian.bamboo.rest.model.artifact.RestArtifact
-
- All Implemented Interfaces:
Artifact
,BambooIdProvider
public class RestArtifact extends Object implements Artifact
-
-
Field Summary
-
Fields inherited from interface com.atlassian.bamboo.artifact.Artifact
SYSTEM_LINK_TYPE
-
-
Constructor Summary
Constructors Constructor Description RestArtifact(Artifact other)
-
Method Summary
All 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.boolean
isGloballyStored()
Indicates that the artifact is stored globally (i.e.boolean
isSharedArtifact()
Indicates if the artifact is a shared artifact.
-
-
-
Constructor Detail
-
RestArtifact
public RestArtifact(Artifact other)
-
-
Method Detail
-
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
-
-