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 booleanexists()booleanexists(Iterable<String> pathComponents)FilegetFile()@NotNull StringgetRootUrl()longgetSize()DatelastModified()@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:
getRootUrlin 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:
listObjectsin interfaceArtifactLinkDataProvider
-
getSize
public long getSize()
- Specified by:
getSizein interfaceArtifactLinkDataProvider
-
lastModified
public Date lastModified()
- Specified by:
lastModifiedin interfaceArtifactLinkDataProvider
-
exists
public boolean exists()
- Specified by:
existsin interfaceArtifactLinkDataProvider
-
exists
public boolean exists(Iterable<String> pathComponents)
- Specified by:
existsin interfaceArtifactLinkDataProvider
-
getFile
public File getFile()
-
-