public class PluginUpdate extends AbstractComponentUpdate
| Modifier and Type | Class and Description |
|---|---|
static class |
PluginUpdate.Factory |
AbstractComponentUpdate.ActionComponentUpdate.ApplyResult, ComponentUpdate.InvalidVersionsummaryMapper| Constructor and Description |
|---|
PluginUpdate(com.suncode.plugin.framework.Plugin plugin,
com.suncode.plugin.framework.PluginStore store,
String channel,
UpdateEngine engine,
DownloadQueue downloadQueue,
StateSummaryMapper summaryMapper,
com.suncode.plugin.framework.PluginControl control) |
| Modifier and Type | Method and Description |
|---|---|
ComponentUpdate.ApplyResult |
apply(InputStream patch) |
protected void |
applyRollback(Rollback rollback) |
protected boolean |
applyUpdates(List<PendingPatch> patches,
Downloads download) |
protected boolean |
autoConfirm() |
protected Patches |
getAvailablePatches(com.suncode.autoupdate.server.client.UpdateServerClient client) |
protected String |
getChannelName() |
Changelog |
getPendingChangelog() |
protected String |
getProjectDisplayName() |
protected String |
getProjectName() |
protected String |
getVersion() |
String |
key() |
protected boolean |
needsValidation() |
protected boolean |
persistentState() |
protected boolean |
validate(List<PendingPatch> patches,
Downloads download) |
cancel, cancelPostPoned, check, configureStateMachine, confirm, error, getUpdates, readIndex, rollback, setup, state, updateTopublic PluginUpdate(com.suncode.plugin.framework.Plugin plugin,
com.suncode.plugin.framework.PluginStore store,
String channel,
UpdateEngine engine,
DownloadQueue downloadQueue,
StateSummaryMapper summaryMapper,
com.suncode.plugin.framework.PluginControl control)
protected boolean autoConfirm()
autoConfirm in class AbstractComponentUpdateprotected boolean needsValidation()
needsValidation in class AbstractComponentUpdateprotected boolean persistentState()
persistentState in class AbstractComponentUpdateprotected boolean validate(List<PendingPatch> patches, Downloads download)
validate in class AbstractComponentUpdatepublic String key()
protected String getProjectName()
getProjectName in class AbstractComponentUpdateprotected String getProjectDisplayName()
getProjectDisplayName in class AbstractComponentUpdateprotected String getChannelName()
getChannelName in class AbstractComponentUpdateprotected String getVersion()
getVersion in class AbstractComponentUpdatepublic Changelog getPendingChangelog()
protected Patches getAvailablePatches(com.suncode.autoupdate.server.client.UpdateServerClient client)
getAvailablePatches in class AbstractComponentUpdateprotected boolean applyUpdates(List<PendingPatch> patches, Downloads download)
applyUpdates in class AbstractComponentUpdateprotected void applyRollback(Rollback rollback)
applyRollback in class AbstractComponentUpdatepublic ComponentUpdate.ApplyResult apply(InputStream patch)
Copyright © 2025 Suncode. All rights reserved.