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
Constructors Constructor Description TrampolineUrlArtifactLinkDataProvider(ArtifactLinkDataProvider artifactLinkDataProvider)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static 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
exists(Iterable<String> pathComponents)
ArtifactLinkDataProvider
getDelegate()
@NotNull String
getRootUrl()
long
getSize()
@Nullable Date
lastModified()
@NotNull Iterable<ArtifactFileData>
listObjects(@Nullable String subpath)
void
setArtifact(@NotNull Artifact artifact)
-
-
-
Constructor Detail
-
TrampolineUrlArtifactLinkDataProvider
public TrampolineUrlArtifactLinkDataProvider(ArtifactLinkDataProvider artifactLinkDataProvider)
-
-
Method Detail
-
getRootUrl
@NotNull public @NotNull String getRootUrl()
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
@NotNull public @NotNull Iterable<ArtifactFileData> listObjects(@Nullable @Nullable String subpath)
- Specified by:
listObjects
in interfaceArtifactLinkDataProvider
-
lastModified
@Nullable public @Nullable Date 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
public boolean exists(Iterable<String> pathComponents)
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
setArtifact
public void setArtifact(@NotNull @NotNull Artifact artifact)
-
getDelegate
public ArtifactLinkDataProvider getDelegate()
-
decorate
public static ArtifactLinkDataProvider decorate(ArtifactLinkDataProvider artifactLinkDataProvider)
-
createTrampolineUrl
public static String createTrampolineUrl(@NotNull @NotNull Artifact artifact, @Nullable @Nullable String tag)
-
createTrampolineUrl
public static String createTrampolineUrl(long artifactId, @Nullable @Nullable String tag)
-
createTrampolineUrl
public static String createTrampolineUrl(PlanResultKey planResultKey, String artifactName, @Nullable @Nullable String tag)
-
-