Class FileSystemArtifactLinkDataProvider
java.lang.Object
com.atlassian.bamboo.build.artifact.FileSystemArtifactLinkDataProvider
- All Implemented Interfaces:
ArtifactLinkDataProvider
-
Constructor Summary
ConstructorDescriptionFileSystemArtifactLinkDataProvider
(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact) FileSystemArtifactLinkDataProvider
(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact, boolean lookForIndexFiles) -
Method Summary
Modifier and TypeMethodDescriptionboolean
exists()
boolean
getFile()
@NotNull String
long
getSize()
@NotNull Iterable<ArtifactFileData>
listObjects
(@Nullable String subpath) This method should not be normally called.
-
Constructor Details
-
FileSystemArtifactLinkDataProvider
public FileSystemArtifactLinkDataProvider(@NotNull @NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull @NotNull Artifact artifact) throws FileNotFoundException - Throws:
FileNotFoundException
-
FileSystemArtifactLinkDataProvider
public FileSystemArtifactLinkDataProvider(@NotNull @NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull @NotNull Artifact artifact, boolean lookForIndexFiles) throws FileNotFoundException - Throws:
FileNotFoundException
-
-
Method Details
-
getRootUrl
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
This method should not be normally called. Implementation is provided for the following scenario:- user is generating artifacts using S3 Artifact Handler
- user stores URL to the artifact
- user is changing Artifact Storage configuration to use Atlassian Cloud storage
- user is rerunning a build creating artifact available on Bamboo server
- then he uses URL to go to the artifact
- Specified by:
listObjects
in interfaceArtifactLinkDataProvider
-
getSize
public long getSize()- Specified by:
getSize
in interfaceArtifactLinkDataProvider
-
lastModified
- Specified by:
lastModified
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists()- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
exists
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
getFile
-