Package org.jivesoftware.openfire.update
Class Update
java.lang.Object
org.jivesoftware.openfire.update.Update
An Update represents a component that needs to be updated. By component we can refer
to the Openfire server itself or to any of the installed plugins.
- Author:
- Gaston Dombiak
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the URL to the change log of the latest version of the component.Returns the name of the component that is outdated.int
Returns the hashCode for this update object.Returns the latest version of the component that was found.Returns the latest version of the component that was found.getURL()
Returns the URL from where the latest version of the component can be downloaded.boolean
Returns true if the plugin was downloaded.void
setDownloaded
(boolean downloaded) Sets if the plugin was downloaded.
-
Constructor Details
-
Update
@Deprecated(forRemoval=true) public Update(String componentName, String latestVersion, String changelog, String url) Deprecated, for removal: This API element is subject to removal in a future version. -
Update
-
-
Method Details
-
getComponentName
Returns the name of the component that is outdated. When the server is the outdated component then a "Openfire" will be returned. Otherwise, the name of the outdated plugin is returned.- Returns:
- the name of the component that is outdated.
-
getLatestVersion
Returns the latest version of the component that was found.- Returns:
- the latest version of the component that was found.
-
getLatest
Returns the latest version of the component that was found.- Returns:
- the latest version of the component that was found.
-
getChangelog
Returns the URL to the change log of the latest version of the component.- Returns:
- the URL to the change log of the latest version of the component.
-
getURL
Returns the URL from where the latest version of the component can be downloaded.- Returns:
- the URL from where the latest version of the component can be downloaded.
-
isDownloaded
public boolean isDownloaded()Returns true if the plugin was downloaded. Once a plugin has been downloaded it may take a couple of seconds to be installed. This flag only makes sense for plugins since we currently do not support download new openfire releases.- Returns:
- true if the plugin was downloaded.
-
setDownloaded
public void setDownloaded(boolean downloaded) Sets if the plugin was downloaded. Once a plugin has been downloaded it may take a couple of seconds to be installed. This flag only makes sense for plugins since we currently do not support download new openfire releases.- Parameters:
downloaded
- true if the plugin was downloaded.
-
getHashCode
public int getHashCode()Returns the hashCode for this update object.- Returns:
- hashCode
-