Class UpdateManager

  • All Implemented Interfaces:
    ProgressListener, java.util.EventListener

    public class UpdateManager
    extends java.lang.Object
    implements ProgressListener
    Author:
    klausj
    • Field Detail

      • APPLICATION_DESCRIPTOR_KEY

        public final java.lang.String APPLICATION_DESCRIPTOR_KEY
        See Also:
        Constant Field Values
      • APPLICATION_DESCRIPTOR_INSTALLATION_TYPE

        public final java.lang.String APPLICATION_DESCRIPTOR_INSTALLATION_TYPE
        See Also:
        Constant Field Values
      • APPLICATION_DESCRIPTOR_OPTIONS

        public final java.lang.String APPLICATION_DESCRIPTOR_OPTIONS
        See Also:
        Constant Field Values
    • Constructor Detail

      • UpdateManager

        protected UpdateManager()
      • UpdateManager

        public UpdateManager​(Version currentVersion)
    • Method Detail

      • getApplicationDescriptorURL

        public java.net.URL getApplicationDescriptorURL()
      • setApplicationDescriptorURL

        public void setApplicationDescriptorURL​(java.net.URL applicationDescriptorURL)
      • getCurrentVersion

        public Version getCurrentVersion()
        Returns:
        the currentVersion
      • startLoadApplicationDescriptor

        public void startLoadApplicationDescriptor()
      • startLoadApplicationDescriptor

        public void startLoadApplicationDescriptor​(java.net.URL url)
      • desktopDownloadPossible

        public boolean desktopDownloadPossible()
      • desktopBrowseApplicationDownload

        public void desktopBrowseApplicationDownload​(ApplicationVersionDescriptor applicationVersionDescriptor)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • applyPlatformDependencies

        public void applyPlatformDependencies()
      • sortedVersions

        public java.util.List<ApplicationVersionDescriptor> sortedVersions()
        Returns available application descriptors sorted by versions ascending.
        Returns:
        list of application descriptors sorted by versions ascending
      • sortedVersionsDesc

        public java.util.List<ApplicationVersionDescriptor> sortedVersionsDesc()
        Returns available application descriptors sorted by versions descending.
        Returns:
        list of application descriptors sorted by versions descending
      • importantUpdatesAvailable

        public boolean importantUpdatesAvailable()
      • main

        public static void main​(java.lang.String[] args)
        Usage: UpdateManager appVersion applicationDescriptorURL
        Parameters:
        args - URL of