Class PluginInstallUtils.InstallStaging
java.lang.Object
com.ultikits.ultitools.utils.PluginInstallUtils.InstallStaging
- All Implemented Interfaces:
ModuleFileTransactions.Catalogue, ModuleFileTransactions.Downloader
- Enclosing class:
PluginInstallUtils
private static final class PluginInstallUtils.InstallStaging
extends Object
implements ModuleFileTransactions.Catalogue, ModuleFileTransactions.Downloader
The metadata and admission result of one install request, never shared across downloads.
- Since:
- 6.0.0
- Author:
- wisdomme
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final CatalogueClient.Versionprivate PluginInstallUtils.PendingResultprivate final String -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateInstallStaging(CatalogueClient.Version metadata, String requested, int level) -
Method Summary
-
Field Details
-
metadata
-
requested
-
level
private final int level -
refusal
-
-
Constructor Details
-
InstallStaging
-
-
Method Details
-
latestVersion
Description copied from interface:ModuleFileTransactions.CatalogueThe latest version of a module.- Specified by:
latestVersionin interfaceModuleFileTransactions.Catalogue- Parameters:
id- the module's identify-string- Returns:
- the version, or
nullwhen there is none
-
downloadLink
Description copied from interface:ModuleFileTransactions.CatalogueThe download link of one version of a module.- Specified by:
downloadLinkin interfaceModuleFileTransactions.Catalogue- Parameters:
id- the module's identify-stringdesiredVersion- the version- Returns:
- the link, or
nullwhen there is none
-
download
Description copied from interface:ModuleFileTransactions.DownloaderDownloads a file.- Specified by:
downloadin interfaceModuleFileTransactions.Downloader- Parameters:
url- the linkfile- the file name to writefolder- the folder to write it into- Throws:
IOException- when the download fails
-