Package org.jivesoftware.openfire.update
Class PluginDownloadManager
java.lang.Object
org.jivesoftware.openfire.update.PluginDownloadManager
Service that allow for aysynchrous calling of system managers.
- Author:
- Derek DeMoro
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondownloadPlugin
(String url) Starts the download process of a given plugin with it's URL.installPlugin
(String username, String url, String version, int hashCode) Installs a new plugin into Openfire.boolean
Updates the PluginList from the server.
-
Constructor Details
-
PluginDownloadManager
public PluginDownloadManager()
-
-
Method Details
-
downloadPlugin
Starts the download process of a given plugin with it's URL.- Parameters:
url
- the url of the plugin to download.- Returns:
- the Update.
-
installPlugin
Installs a new plugin into Openfire.- Parameters:
username
- The user that triggered the install.url
- the url of the plugin to install.version
- the version of the new pluginhashCode
- the matching hashcode of theAvailablePlugin
.- Returns:
- the hashCode.
-
updatePluginsList
public boolean updatePluginsList()Updates the PluginList from the server. Please note, this method is used with javascript calls and will not be found with a find usages.- Returns:
- true if the plugin list was updated.
-