Class S3ArtifactLinkDataProvider
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.S3ArtifactLinkDataProvider
-
- All Implemented Interfaces:
ArtifactLinkDataProvider
public class S3ArtifactLinkDataProvider extends Object implements ArtifactLinkDataProvider
-
-
Constructor Summary
Constructors Constructor Description S3ArtifactLinkDataProvider(long artifactId, @NotNull Supplier<com.amazonaws.services.s3.AmazonS3> s3Client, @NotNull String bucketName, @NotNull String keyInBucket, ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists()
boolean
exists(Iterable<String> pathComponents)
@NotNull String
getRootUrl()
long
getSize()
Date
lastModified()
@NotNull Iterable<ArtifactFileData>
listObjects(@Nullable String subpath)
-
-
-
Constructor Detail
-
S3ArtifactLinkDataProvider
public S3ArtifactLinkDataProvider(long artifactId, @NotNull @NotNull Supplier<com.amazonaws.services.s3.AmazonS3> s3Client, @NotNull @NotNull String bucketName, @NotNull @NotNull String keyInBucket, ArtifactHandlerConfigProvider artifactHandlerConfigProvider)
-
-
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
public 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
-
-