| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jivesoftware.sparkimpl.updater.CheckUpdates
public class CheckUpdates
| Field Summary | |
|---|---|
static boolean | 
UPDATING
 | 
| Constructor Summary | |
|---|---|
CheckUpdates()
 | 
|
| Method Summary | |
|---|---|
 void | 
checkForUpdate(boolean explicit)
Checks Spark Manager and/or Jive Software for the latest version of Spark.  | 
 void | 
downloadUpdate(java.io.File downloadedFile,
               SparkVersion version)
 | 
static SparkVersion | 
getLatestVersion(org.jivesoftware.smack.XMPPConnection connection)
Returns the latest version of Spark available via Spark Manager or Jive Software.  | 
 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)
Does a service discvery on the server to see if a Spark Manager is enabled.  | 
 SparkVersion | 
newBuildAvailable()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static boolean UPDATING
| Constructor Detail | 
|---|
public CheckUpdates()
| Method Detail | 
|---|
public SparkVersion newBuildAvailable()
public SparkVersion isNewBuildAvailableFromJivesoftware()
public void downloadUpdate(java.io.File downloadedFile,
                           SparkVersion version)
public void checkForUpdate(boolean explicit)
                    throws java.lang.Exception
explicit - true if the user explicitly asks for the latest version.
java.lang.Exception
public boolean isGreater(java.lang.String version1,
                         java.lang.String version2)
version1 - the first version number.version2 - the second version number.
public static SparkVersion getLatestVersion(org.jivesoftware.smack.XMPPConnection connection)
                                     throws org.jivesoftware.smack.XMPPException
connection - the XMPPConnection to use.
org.jivesoftware.smack.XMPPExceptionpublic static boolean isSparkPluginInstalled(org.jivesoftware.smack.XMPPConnection con)
con - the XMPPConnection to use.
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||