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:
  • Constructor Details

    • ArtifactImpl

      public ArtifactImpl(Artifact other)
  • Method Details

    • globallyStoredCopyOf

      public static ArtifactImpl globallyStoredCopyOf(Artifact other)
    • getLabel

      @NotNull public @NotNull String getLabel()
      Description copied from interface: Artifact
      Label of the Artifact
      Specified by:
      getLabel in interface Artifact
      Returns:
      label
    • getSize

      public long getSize()
      Description copied from interface: Artifact
      Returns a file size in bytes.
      Specified by:
      getSize in interface Artifact
      Returns:
    • getLinkType

      @NotNull public @NotNull String getLinkType()
      Description copied from interface: Artifact
      Type of artifact link
      Specified by:
      getLinkType in interface Artifact
      Returns:
      linkType
    • isSharedArtifact

      public boolean isSharedArtifact()
      Description copied from interface: Artifact
      Indicates if the artifact is a shared artifact.
      Specified by:
      isSharedArtifact in interface Artifact
      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 interface Artifact
    • getPlanResultKey

      @NotNull public @NotNull PlanResultKey getPlanResultKey()
      Description copied from interface: Artifact
      Get key of ResultsSummary that owns this Artifact. Can be both Job or Plan result. May point to result which is already removed.
      Specified by:
      getPlanResultKey in interface Artifact
      Returns:
    • getId

      public long getId()
      Specified by:
      getId in interface BambooIdProvider
    • 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 interface Artifact