Class TrampolineUrlArtifactLinkDataProvider
java.lang.Object
com.atlassian.bamboo.build.artifact.TrampolineUrlArtifactLinkDataProvider
- All Implemented Interfaces:
ArtifactLinkDataProvider
public class TrampolineUrlArtifactLinkDataProvider
extends Object
implements ArtifactLinkDataProvider
This ArtifactLinkDataProvider transforms ArtifactFileData returned by delegate by providing URL to ArtifactUrlRedirect action
-
Constructor Summary
ConstructorDescriptionTrampolineUrlArtifactLinkDataProvider
(ArtifactLinkDataProvider artifactLinkDataProvider) -
Method Summary
Modifier and TypeMethodDescriptionstatic String
createTrampolineUrl
(long artifactId, @Nullable String tag) static String
createTrampolineUrl
(@NotNull Artifact artifact, @Nullable String tag) static String
createTrampolineUrl
(PlanResultKey planResultKey, String artifactName, @Nullable String tag) static ArtifactLinkDataProvider
decorate
(ArtifactLinkDataProvider artifactLinkDataProvider) boolean
exists()
boolean
@NotNull String
long
getSize()
@Nullable Date
@NotNull Iterable<ArtifactFileData>
listObjects
(@Nullable String subpath) void
setArtifact
(@NotNull Artifact artifact)
-
Constructor Details
-
TrampolineUrlArtifactLinkDataProvider
-
-
Method Details
-
getRootUrl
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
- Specified by:
listObjects
in interfaceArtifactLinkDataProvider
-
lastModified
- Specified by:
lastModified
in interfaceArtifactLinkDataProvider
-
getSize
public long getSize()- Specified by:
getSize
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists()- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
exists
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
setArtifact
-
getDelegate
-
decorate
-
createTrampolineUrl
-
createTrampolineUrl
-
createTrampolineUrl
public static String createTrampolineUrl(PlanResultKey planResultKey, String artifactName, @Nullable @Nullable String tag)
-