public abstract class FileSetVersionsFetcherBase<FS extends DownloadableFileSetDescription,F extends DownloadableFileDescription> extends java.lang.Object implements DownloadableFileSetVersions<FS>
DownloadableFileSetVersions.FileSetVersionsCallback<F extends DownloadableFileSetDescription>| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
myGroupId |
| Constructor and Description |
|---|
FileSetVersionsFetcherBase(java.lang.String groupId,
java.net.URL [] localUrls) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract F |
createFileDescription(ArtifactItem item,
java.lang.String url,
java.lang.String prefix) |
protected abstract FS |
createVersion(Artifact version,
java.util.List<F> files) |
java.util.List<FS> |
fetchVersions() |
void |
fetchVersions(DownloadableFileSetVersions.FileSetVersionsCallback<FS> callback)
Fetches available versions of file sets and calls
callback.onSuccess when finished |
protected static java.lang.String |
prependPrefix(java.lang.String url,
java.lang.String prefix) |
public FileSetVersionsFetcherBase(java.lang.String groupId,
java.net.URL [] localUrls)
public void fetchVersions(DownloadableFileSetVersions.FileSetVersionsCallback<FS> callback)
DownloadableFileSetVersionscallback.onSuccess when finishedfetchVersions in interface DownloadableFileSetVersions<FS extends DownloadableFileSetDescription>callback - callback to receive the resultpublic java.util.List<FS> fetchVersions()
fetchVersions in interface DownloadableFileSetVersions<FS extends DownloadableFileSetDescription>protected static java.lang.String prependPrefix(java.lang.String url,
java.lang.String prefix)
protected abstract F createFileDescription(ArtifactItem item, java.lang.String url, java.lang.String prefix)