public final class UpdateCenter.PluginDowngradeJob extends UpdateCenter.DownloadJob
UpdateCenter.DownloadJob.Failure, UpdateCenter.DownloadJob.InstallationStatus, UpdateCenter.DownloadJob.Installing, UpdateCenter.DownloadJob.Pending, UpdateCenter.DownloadJob.Skipped, UpdateCenter.DownloadJob.Success, UpdateCenter.DownloadJob.SuccessButRequiresRestart
Modifier and Type | Field and Description |
---|---|
UpdateSite.Plugin |
plugin
What plugin are we trying to install?
|
status
error, id, site
Constructor and Description |
---|
PluginDowngradeJob(UpdateSite.Plugin plugin,
UpdateSite site,
Authentication auth)
Deprecated.
use
PluginDowngradeJob(Plugin, UpdateSite, Authentication) |
PluginDowngradeJob(UpdateSite.Plugin plugin,
UpdateSite site,
org.springframework.security.core.Authentication auth) |
Modifier and Type | Method and Description |
---|---|
protected void |
_run() |
protected File |
getBackup() |
protected File |
getDestination()
Where to download the file to.
|
String |
getDisplayName()
Display name used for the GUI.
|
String |
getName()
Code name used for logging.
|
protected URL |
getURL()
Where to download the file from.
|
protected void |
onSuccess()
Called when the whole thing went successfully.
|
protected void |
replace(File dst,
File backup)
Called to overwrite
current version with backup file
|
void |
run() |
String |
toString() |
getComputedSHA1, getComputedSHA256, getComputedSHA512, getUser
getApi, getCorrelationId, getError, getErrorMessage, getType, schedule, setCorrelationId, submit
public final UpdateSite.Plugin plugin
@Deprecated public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, Authentication auth)
PluginDowngradeJob(Plugin, UpdateSite, Authentication)
public PluginDowngradeJob(UpdateSite.Plugin plugin, UpdateSite site, org.springframework.security.core.Authentication auth)
protected URL getURL() throws MalformedURLException
UpdateCenter.DownloadJob
getURL
in class UpdateCenter.DownloadJob
MalformedURLException
protected File getDestination()
UpdateCenter.DownloadJob
getDestination
in class UpdateCenter.DownloadJob
protected File getBackup()
public String getName()
UpdateCenter.DownloadJob
getName
in class UpdateCenter.DownloadJob
public String getDisplayName()
UpdateCenter.DownloadJob
getDisplayName
in class UpdateCenter.DownloadJob
public void run()
run
in interface Runnable
run
in class UpdateCenter.DownloadJob
protected void _run() throws IOException
_run
in class UpdateCenter.DownloadJob
IOException
protected void replace(File dst, File backup) throws IOException
replace
in class UpdateCenter.DownloadJob
IOException
protected void onSuccess()
UpdateCenter.DownloadJob
onSuccess
in class UpdateCenter.DownloadJob
Copyright © 2004–2021. All rights reserved.