public class ServerApplication
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
boolean |
getHasFeature(Feature feature)
Check whether a given feature is available.
|
boolean |
getHasFeature(int featureID)
Deprecated.
Use
getHasFeature(com.canto.cumulus.constants.Feature) instead. |
static ServerApplication |
getInstance()
Returns the singleton instance.
|
ModuleJsonPreferences |
getModuleConfigurationData(java.lang.String moduleID)
Return the shared module preferences for the given module ID.
|
JPack |
getPreferences(java.lang.String path)
Return the preferences data of the given path.
|
java.lang.String |
getSerialNumber()
Returns the server's base serial number.
|
UserContextData |
getUserContextData(java.lang.String uuid)
Returns the user data for the given user UID.
|
boolean |
isEnterpriseServer()
Deprecated.
Since 7.5 use
getHasFeature(int) instead. |
public static ServerApplication getInstance()
public UserContextData getUserContextData(java.lang.String uuid)
uuid
- the user UID to get the data for@Deprecated public boolean isEnterpriseServer()
getHasFeature(int)
instead.true
if this server is an Enterprise server, false
otherwise.public java.lang.String getSerialNumber()
@Deprecated public boolean getHasFeature(int featureID)
getHasFeature(com.canto.cumulus.constants.Feature)
instead.featureID
- the ID of the feature to check. Use one of the constants of the Feature
interface.true
if the feature is available, false
otherwise.public boolean getHasFeature(Feature feature)
feature
- the feature to check. Use one of the constants of the Feature
enum.true
if the feature is available, false
otherwise.public JPack getPreferences(java.lang.String path)
path
- path of the preferences datapublic ModuleJsonPreferences getModuleConfigurationData(java.lang.String moduleID)
moduleID
- the module ID to get the preferences forwww.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.