Class Update


  • public class Update
    extends Object
    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
    • Method Detail

      • getComponentName

        public String 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

        public String getLatestVersion()
        Returns the latest version of the component that was found.
        Returns:
        the latest version of the component that was found.
      • getChangelog

        public String 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

        public String 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