|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectchemaxon.license.LicenseManager
LicenseManager is a helper class to manage licenses of ChemAxon products. The licenses are stored in xml files (license.cxl) and are digitally signatured by ChemAxon. The default location of the license file is USER_HOME/chemaxon/license.cxl, but this can arbitrarily be changed. The old license files (licenses.dat) are supported till September 2008.
| Field Summary | |
static java.lang.String |
CARTRIDGE
Identifier of product: JChem Cartridge |
static java.lang.String |
CHARGE_PLUGIN_GROUP
Identifier of plugin: Charge Plugin Group |
static java.lang.String |
CONFORMATION_PLUGIN_GROUP
Identifier of plugin: Conformation Plugin Group |
static java.lang.String |
FRAGMENTER
Identifier of product: Fragmenter |
static java.lang.String |
GEOMETRY_PLUGIN_GROUP
Identifier of plugin: Geometry Plugin Group |
static java.lang.String |
HBDA_PLUGIN
Identifier of plugin: HBDA Plugin |
static java.lang.String |
HUCKEL_ANALYSIS_PLUGIN
Identifier of plugin: Huckel Analysis Plugin |
static java.lang.String |
INSTANT_JCHEM
Identifier of product: Instant JChem |
static java.lang.String |
IQSAR
Identifier of product: IQSAR |
static java.lang.String |
ISOMERS_PLUGIN_GROUP
Identifier of plugin: Isomers Plugin Group |
static java.lang.String |
IUPAC_NAMING_PLUGIN
Identifier of plugin: IUPAC Naming Plugin |
static java.lang.String |
JCHEM
Identifier of product: JChem Base |
static java.lang.String |
JKLUSTOR
Identifier of product: JKlustor |
static java.lang.String |
MARKUSH_ENUM_PLUGIN
Identifier of plugin: Markush Enumeration Plugin |
static java.lang.String |
MARKUSH_SEARCH
Identifier of product: Markush Search |
static java.lang.String |
MARVIN_APPLETS
Identifier of product: Marvin Applets |
static java.lang.String |
MARVIN_BEANS
Identifier of product: Marvin Beans |
static java.lang.String |
METABOLIZER
Identifier of product: Metabolizer |
static java.lang.String |
PARTITIONING_PLUGIN_GROUP
Identifier of plugin: Partitioning Plugin Group |
static java.lang.String |
PROTONATION_PLUGIN_GROUP
Identifier of plugin: Protonation Plugin Group |
static java.lang.String |
QSAR
Identifier of product: 3D QSAR |
static java.lang.String |
REACTOR
Identifier of product: Reactor |
static java.lang.String |
REFRACTIVITY_PLUGIN
Identifier of plugin: Refractivity Plugin |
static java.lang.String |
SCREEN
Identifier of product: Screen |
static java.lang.String |
SOLUBILITY_PLUGIN
Identifier of plugin: Solubility Plugin |
static java.lang.String |
STANDARDIZER
Identifier of product: Standardizer |
| Constructor Summary | |
LicenseManager()
|
|
| Method Summary | |
static javax.swing.JPanel |
createLicenseManagerPanel()
Creates the main panel which is used for end-user license managing. |
static java.lang.String |
getLicenseExceptionMessage()
Returns the common message used at license problems. |
static javax.swing.JPanel |
getLicenseExceptionPanel(chemaxon.license.LicenseException exc)
Returns the common swing component used to indicate missing license. |
static javax.swing.JPanel |
getLicenseExceptionPanel(java.lang.String product)
Returns the common swing component used to indicate missing license. |
static java.util.ArrayList |
getPluginList()
Returns the list of the plugin identifiers known by the license manager. |
static java.util.ArrayList |
getProductList(boolean includePlugins)
Returns the list of the product identifiers known by the license manager. |
static boolean |
isLicensed(java.lang.String product)
Returns true if the license manager recognizes the given product to be licensed. |
static void |
refresh()
Re-reads licenses from the default locations. |
static void |
setLicense(java.lang.String s)
Sets a pre-read license file to the license manager to read and validate licenses from. |
static void |
setLicenseFile(java.lang.String licensePath)
Sets the license file location to the license manager to read and validate licenses from. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String MARVIN_APPLETS
public static final java.lang.String MARVIN_BEANS
public static final java.lang.String INSTANT_JCHEM
public static final java.lang.String JCHEM
public static final java.lang.String CARTRIDGE
public static final java.lang.String STANDARDIZER
public static final java.lang.String SCREEN
public static final java.lang.String REACTOR
public static final java.lang.String FRAGMENTER
public static final java.lang.String JKLUSTOR
public static final java.lang.String METABOLIZER
public static final java.lang.String IQSAR
public static final java.lang.String QSAR
public static final java.lang.String MARKUSH_SEARCH
public static final java.lang.String PROTONATION_PLUGIN_GROUP
public static final java.lang.String PARTITIONING_PLUGIN_GROUP
public static final java.lang.String CHARGE_PLUGIN_GROUP
public static final java.lang.String ISOMERS_PLUGIN_GROUP
public static final java.lang.String CONFORMATION_PLUGIN_GROUP
public static final java.lang.String GEOMETRY_PLUGIN_GROUP
public static final java.lang.String HUCKEL_ANALYSIS_PLUGIN
public static final java.lang.String REFRACTIVITY_PLUGIN
public static final java.lang.String HBDA_PLUGIN
public static final java.lang.String MARKUSH_ENUM_PLUGIN
public static final java.lang.String SOLUBILITY_PLUGIN
public static final java.lang.String IUPAC_NAMING_PLUGIN
| Constructor Detail |
public LicenseManager()
| Method Detail |
public static java.util.ArrayList getProductList(boolean includePlugins)
includePlugins - whether the list should contain the name of the plugins as well
public static java.util.ArrayList getPluginList()
public static java.lang.String getLicenseExceptionMessage()
public static javax.swing.JPanel getLicenseExceptionPanel(java.lang.String product)
product - identifier of a product
public static javax.swing.JPanel getLicenseExceptionPanel(chemaxon.license.LicenseException exc)
exc - a LicenseException thrown at license checking
public static javax.swing.JPanel createLicenseManagerPanel()
public static void setLicenseFile(java.lang.String licensePath)
throws java.io.IOException
licenses.dat is not allowed to set for
security reasons.
licensePath - path of the license file that can be absolute file location or URL
java.io.IOException - when a problem occurs reading or validating licensespublic static void setLicense(java.lang.String s)
s - license file content as Stringpublic static void refresh()
public static boolean isLicensed(java.lang.String product)
product - identifier of a product
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||