com.jivesoftware.sparkimpl.updater
Class CheckUpdates

java.lang.Object
  extended bycom.jivesoftware.sparkimpl.updater.CheckUpdates

public class CheckUpdates
extends java.lang.Object


Field Summary
static boolean UPDATING
           
 
Constructor Summary
CheckUpdates()
           
 
Method Summary
 void checkForUpdate(boolean forced)
           
 void downloadUpdate(java.io.File downloadedFile, SparkVersion version)
           
static SparkVersion getLatestVersion(org.jivesoftware.smack.XMPPConnection connection)
           
 boolean isGreater(java.lang.String version1, java.lang.String version2)
          Returns true if the first version number is greater than the second.
 SparkVersion isNewBuildAvailableFromJivesoftware()
          Returns true if there is a new build available for download.
static boolean isSparkPluginInstalled(org.jivesoftware.smack.XMPPConnection con)
           
 SparkVersion newBuildAvailable()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UPDATING

public static boolean UPDATING
Constructor Detail

CheckUpdates

public CheckUpdates()
Method Detail

newBuildAvailable

public SparkVersion newBuildAvailable()

isNewBuildAvailableFromJivesoftware

public SparkVersion isNewBuildAvailableFromJivesoftware()
Returns true if there is a new build available for download.

Returns:
true if there is a new build available for download.

downloadUpdate

public void downloadUpdate(java.io.File downloadedFile,
                           SparkVersion version)

checkForUpdate

public void checkForUpdate(boolean forced)
                    throws java.lang.Exception
Throws:
java.lang.Exception

isGreater

public boolean isGreater(java.lang.String version1,
                         java.lang.String version2)
Returns true if the first version number is greater than the second.

Parameters:
version1 - the first version number.
version2 - the second version number.
Returns:
returns true if the first version is greater than the second.

getLatestVersion

public static SparkVersion getLatestVersion(org.jivesoftware.smack.XMPPConnection connection)
                                     throws org.jivesoftware.smack.XMPPException
Throws:
org.jivesoftware.smack.XMPPException

isSparkPluginInstalled

public static boolean isSparkPluginInstalled(org.jivesoftware.smack.XMPPConnection con)