Class S3ArtifactLinkDataProvider
java.lang.Object
com.atlassian.bamboo.build.artifact.S3ArtifactLinkDataProvider
- All Implemented Interfaces:
ArtifactLinkDataProvider
-
Constructor Summary
ConstructorDescriptionS3ArtifactLinkDataProvider
(long artifactId, @NotNull Supplier<com.amazonaws.services.s3.AmazonS3> s3Client, @NotNull String bucketName, @NotNull String keyInBucket, ArtifactHandlerConfigProvider artifactHandlerConfigProvider, AdministrationConfigurationAccessor administrationConfigurationAccessor) -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
boolean
@NotNull String
getSignedUrl
(String key) long
getSize()
boolean
isInlineableMimeType
(String mimeType) @NotNull Iterable<ArtifactFileData>
listObjects
(@Nullable String subpath)
-
Constructor Details
-
S3ArtifactLinkDataProvider
public S3ArtifactLinkDataProvider(long artifactId, @NotNull @NotNull Supplier<com.amazonaws.services.s3.AmazonS3> s3Client, @NotNull @NotNull String bucketName, @NotNull @NotNull String keyInBucket, ArtifactHandlerConfigProvider artifactHandlerConfigProvider, AdministrationConfigurationAccessor administrationConfigurationAccessor)
-
-
Method Details
-
getRootUrl
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
- Specified by:
listObjects
in interfaceArtifactLinkDataProvider
-
getSignedUrl
-
getCurrentMethodName
-
isInlineableMimeType
-
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
-