@Component public class SystemUpdate extends AbstractComponentUpdate
AbstractComponentUpdate.ActionComponentUpdate.ApplyResult, ComponentUpdate.InvalidVersionsummaryMapper| Constructor and Description |
|---|
SystemUpdate(com.suncode.plugin.framework.Plugin plugin,
com.suncode.autoupdate.patcher.Context context,
UpdateEngine engine,
DownloadQueue downloadQueue,
StateSummaryMapper summaryMapper,
Rollbacks rollbacks,
Downloader downloader) |
| Modifier and Type | Method and Description |
|---|---|
ComponentUpdate.ApplyResult |
apply(InputStream stream) |
protected void |
applyRollback(Rollback rollback) |
protected boolean |
applyUpdates(List<PendingPatch> patches,
Downloads download) |
protected boolean |
autoConfirm() |
protected void |
cancelPostPoned() |
protected void |
configureStateMachine(com.github.oxo42.stateless4j.StateMachineConfig<UpdateState,UpdateEvent> config) |
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) |
@Autowired
public SystemUpdate(com.suncode.plugin.framework.Plugin plugin,
com.suncode.autoupdate.patcher.Context context,
UpdateEngine engine,
DownloadQueue downloadQueue,
StateSummaryMapper summaryMapper,
Rollbacks rollbacks,
Downloader downloader)
protected boolean autoConfirm()
autoConfirm in class AbstractComponentUpdateprotected boolean needsValidation()
needsValidation in class AbstractComponentUpdateprotected boolean persistentState()
persistentState 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 boolean validate(List<PendingPatch> patches, Downloads download)
validate in class AbstractComponentUpdateprotected void cancelPostPoned()
cancelPostPoned in class AbstractComponentUpdateprotected void applyRollback(Rollback rollback)
applyRollback in class AbstractComponentUpdateprotected void configureStateMachine(com.github.oxo42.stateless4j.StateMachineConfig<UpdateState,UpdateEvent> config)
configureStateMachine in class AbstractComponentUpdatepublic ComponentUpdate.ApplyResult apply(InputStream stream)
Copyright © 2025 Suncode. All rights reserved.