Class FileSystemArtifactLinkDataProvider
- java.lang.Object
-
- com.atlassian.bamboo.build.artifact.FileSystemArtifactLinkDataProvider
-
- All Implemented Interfaces:
ArtifactLinkDataProvider
public class FileSystemArtifactLinkDataProvider extends Object implements ArtifactLinkDataProvider
-
-
Constructor Summary
Constructors Constructor Description FileSystemArtifactLinkDataProvider(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact)
FileSystemArtifactLinkDataProvider(@NotNull ArtifactDirectoryBuilder artifactDirectoryBuilder, @NotNull Artifact artifact, boolean lookForIndexFiles)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
exists()
boolean
exists(Iterable<String> pathComponents)
File
getFile()
@NotNull String
getRootUrl()
long
getSize()
Date
lastModified()
@NotNull Iterable<ArtifactFileData>
listObjects(@Nullable String subpath)
This method should not be normally called.
-
-
-
Constructor Detail
-
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 Detail
-
getRootUrl
@NotNull public @NotNull String getRootUrl()
- Specified by:
getRootUrl
in interfaceArtifactLinkDataProvider
-
listObjects
@NotNull public @NotNull Iterable<ArtifactFileData> listObjects(@Nullable @Nullable String subpath)
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
public Date lastModified()
- Specified by:
lastModified
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists()
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
exists
public boolean exists(Iterable<String> pathComponents)
- Specified by:
exists
in interfaceArtifactLinkDataProvider
-
getFile
public File getFile()
-
-