com.rapid_i.deployment.update.client
Class UpdateManager

java.lang.Object
  extended by com.rapid_i.deployment.update.client.UpdateManager

public class UpdateManager
extends java.lang.Object

This class manages the updates of the core and installation and updates of extensions.

Author:
Simon Fischer

Field Summary
static java.lang.String PACKAGEID_RAPIDMINER
           
static java.lang.String PARAMETER_INSTALL_TO_HOME
           
static java.lang.String PARAMETER_UPDATE_INCREMENTALLY
           
static java.lang.String PARAMETER_UPDATE_URL
           
static java.lang.String UPDATESERVICE_URL
           
 
Constructor Summary
UpdateManager(UpdateService service)
           
 
Method Summary
static void checkForUpdates()
          Checks whether the last update is at least 7 days ago, then checks whether there are any updates, and opens a dialog if desired by the user.
static AccountService getAccountService()
           
static java.lang.String getBaseUrl()
           
static UpdateService getService()
           
static java.net.URI getUpdateServerURI(java.lang.String suffix)
           
static boolean isIncrementalUpdate()
           
 void performUpdates(java.util.List<PackageDescriptor> downloadList, ProgressListener progressListener)
           
static void saveLastUpdateCheckDate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAMETER_UPDATE_INCREMENTALLY

public static final java.lang.String PARAMETER_UPDATE_INCREMENTALLY
See Also:
Constant Field Values

PARAMETER_UPDATE_URL

public static final java.lang.String PARAMETER_UPDATE_URL
See Also:
Constant Field Values

PARAMETER_INSTALL_TO_HOME

public static final java.lang.String PARAMETER_INSTALL_TO_HOME
See Also:
Constant Field Values

UPDATESERVICE_URL

public static final java.lang.String UPDATESERVICE_URL
See Also:
Constant Field Values

PACKAGEID_RAPIDMINER

public static final java.lang.String PACKAGEID_RAPIDMINER
See Also:
Constant Field Values
Constructor Detail

UpdateManager

public UpdateManager(UpdateService service)
Method Detail

performUpdates

public void performUpdates(java.util.List<PackageDescriptor> downloadList,
                           ProgressListener progressListener)
                    throws java.io.IOException,
                           UpdateServiceException_Exception
Throws:
java.io.IOException
UpdateServiceException_Exception

getBaseUrl

public static java.lang.String getBaseUrl()

getUpdateServerURI

public static java.net.URI getUpdateServerURI(java.lang.String suffix)
                                       throws java.net.URISyntaxException
Throws:
java.net.URISyntaxException

isIncrementalUpdate

public static boolean isIncrementalUpdate()

getService

public static UpdateService getService()
                                throws java.net.MalformedURLException,
                                       java.net.URISyntaxException
Throws:
java.net.MalformedURLException
java.net.URISyntaxException

getAccountService

public static AccountService getAccountService()
                                        throws java.net.MalformedURLException,
                                               java.net.URISyntaxException
Throws:
java.net.MalformedURLException
java.net.URISyntaxException

saveLastUpdateCheckDate

public static void saveLastUpdateCheckDate()

checkForUpdates

public static void checkForUpdates()
Checks whether the last update is at least 7 days ago, then checks whether there are any updates, and opens a dialog if desired by the user.



Copyright © 2001-2009 by Rapid-I