@Extension @Symbol(value="pluginUpdate") public static final class PluginManager.PluginUpdateMonitor extends AdministrativeMonitor
AdministrativeMonitor
that informs the administrator about a required plugin update.Modifier and Type | Class and Description |
---|---|
static class |
PluginManager.PluginUpdateMonitor.PluginUpdateInfo |
ExtensionPoint.LegacyInstancesAreScopedToHudson
id
Constructor and Description |
---|
PluginUpdateMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
addPluginToUpdate(String pluginName,
String message)
adds a message about a plugin to the manage screen
|
String |
getDisplayName() |
static PluginManager.PluginUpdateMonitor |
getInstance()
Convenience method to ease access to this monitor, this allows other plugins to register required updates.
|
Collection<PluginManager.PluginUpdateMonitor.PluginUpdateInfo> |
getPluginsToBeUpdated() |
void |
ifPluginOlderThenReport(String pluginName,
String requiredVersion,
String message)
Report to the administrator if the plugin with the given name is older then the required version.
|
boolean |
isActivated()
Returns true if this monitor is activated and
wants to produce a warning message.
|
all, disable, doDisable, getRequiredPermission, getSearchUrl, getTarget, getUrl, isEnabled, isSecurity
getSearch, getSearchIndex, getSearchName, makeSearchIndex, requirePOST, sendError, sendError, sendError, sendError, sendError
public static PluginManager.PluginUpdateMonitor getInstance()
public void ifPluginOlderThenReport(String pluginName, String requiredVersion, String message)
pluginName
- shortName of the plugin (artifactId)requiredVersion
- the lowest version which is OK (e.g. 2.2.2)message
- the message to show (plain text)public boolean isActivated()
AdministrativeMonitor
This method is called from the HTML rendering thread, so it should run efficiently.
isActivated
in class AdministrativeMonitor
public String getDisplayName()
getDisplayName
in interface ModelObject
getDisplayName
in class AdministrativeMonitor
public void addPluginToUpdate(String pluginName, String message)
pluginName
- the plugins namemessage
- the message to be displayedpublic Collection<PluginManager.PluginUpdateMonitor.PluginUpdateInfo> getPluginsToBeUpdated()
Copyright © 2004–2021. All rights reserved.