org.jivesoftware.sparkimpl.plugin.manager
Class Enterprise

java.lang.Object
  extended by org.jivesoftware.sparkimpl.plugin.manager.Enterprise

public class Enterprise
extends java.lang.Object

EnterpriseSparkManager is responsible for the detecting of features on the server. This allows for fine-grain control of feature sets to enable/disable within Spark.

Author:
Derek DeMoro

Field Summary
static java.lang.String BROADCAST_FEATURE
           
static java.lang.String FILE_TRANSFER_FEATURE
           
static java.lang.String MUC_FEATURE
           
static java.lang.String VCARD_FEATURE
           
 
Constructor Summary
Enterprise()
           
 
Method Summary
static boolean containsFeature(java.lang.String feature)
          Returns true if the feature is available.
 boolean isSparkManagerInstalled()
          Returns true if the Enterprise Spark Manager module is installed on the server we are currently connected to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BROADCAST_FEATURE

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

MUC_FEATURE

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

VCARD_FEATURE

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

FILE_TRANSFER_FEATURE

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

Enterprise

public Enterprise()
Method Detail

isSparkManagerInstalled

public boolean isSparkManagerInstalled()
Returns true if the Enterprise Spark Manager module is installed on the server we are currently connected to.

Returns:
true if Enterprise Spark Manager exists.

containsFeature

public static boolean containsFeature(java.lang.String feature)
Returns true if the feature is available.

Parameters:
feature - the name of the feature to detect.
Returns:
true if the feature is available on the server, otherwise false.