|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectchemaxon.license.LicenseManager
public class 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 |
ALIGNMENT
Identifier of product: Alignment |
static java.lang.String |
CALCULATIONS_PACK
Identifier of product: Calculations Pack |
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 |
DOCUMENT_TO_STRUCTURE
Identifier of product: Document to Structure |
static java.lang.String |
ECFP_FCFP
Identifier of product: Molecular Descriptors |
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 |
INSTANT_JCHEM_VIZ
Identifier of product: Instant JChem VIZ |
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 |
JCHEM_FOR_EXCEL
Identifier of product: JChem for Excel |
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 |
MCES
Identifier of product: MCES |
static java.lang.String |
METABOLIZER
Identifier of product: Metabolizer |
static java.lang.String |
MOLECULAR_DESCRIPTORS
Identifier of product: Molecular Descriptors |
static java.lang.String |
NAME_TO_STRUCTURE
Identifier of product: Name to Structure |
static java.lang.String |
PARTITIONING_PLUGIN_GROUP
Identifier of plugin: Partitioning Plugin Group |
static java.lang.String |
PREDICTOR_PLUGIN
Identifier of product: Predictor Plugin |
static java.lang.String |
PROTONATION_PLUGIN_GROUP
Identifier of plugin: Protonation Plugin Group |
static java.lang.String |
REACTOR
Identifier of product: Reactor |
static java.lang.String |
REFRACTIVITY_PLUGIN
Identifier of plugin: Refractivity Plugin |
static java.lang.String |
REGISTRATION_SYSTEM
Identifier of product: Structure Checker |
static java.lang.String |
SCREEN
Identifier of product: Screen |
static java.lang.String |
SCREEN3D
Identifier of product: 3D Screen |
static java.lang.String |
SHAREPOINT
Identifier of product: SharePoint |
static java.lang.String |
STANDARDIZER
Identifier of product: Standardizer |
static java.lang.String |
STRUCTURAL_FRAMEWORKS_PLUGIN
Identifier of product: Structural Frameworks Plugin |
static java.lang.String |
STRUCTURE_CHECKER
Identifier of product: Structure Checker |
static java.lang.String |
STRUCTURE_TO_NAME
Identifier of product: Structure to Name |
static java.lang.String |
WEB_SERVICES_SERVER
Identifier of product: Web Services Server |
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<java.lang.String> |
getPluginList()
Returns the list of the plugin identifiers known by the license manager. |
static java.util.ArrayList<java.lang.String> |
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 INSTANT_JCHEM_VIZ
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 MCES
public static final java.lang.String SCREEN3D
public static final java.lang.String ALIGNMENT
public static final java.lang.String MOLECULAR_DESCRIPTORS
public static final java.lang.String ECFP_FCFP
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 MARKUSH_SEARCH
public static final java.lang.String NAME_TO_STRUCTURE
public static final java.lang.String DOCUMENT_TO_STRUCTURE
public static final java.lang.String STRUCTURE_TO_NAME
public static final java.lang.String JCHEM_FOR_EXCEL
public static final java.lang.String CALCULATIONS_PACK
public static final java.lang.String WEB_SERVICES_SERVER
public static final java.lang.String SHAREPOINT
public static final java.lang.String STRUCTURE_CHECKER
public static final java.lang.String REGISTRATION_SYSTEM
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 IUPAC_NAMING_PLUGIN
public static final java.lang.String STRUCTURAL_FRAMEWORKS_PLUGIN
public static final java.lang.String PREDICTOR_PLUGIN
Constructor Detail |
---|
public LicenseManager()
Method Detail |
---|
public static java.util.ArrayList<java.lang.String> getProductList(boolean includePlugins)
includePlugins
- whether the list should contain the name of the plugins as well
public static java.util.ArrayList<java.lang.String> 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 chemaxon.license.LicenseProcessingException
licenses.dat
is not allowed to set for
security reasons.
licensePath
- path of the license file that can be absolute file location or URL
chemaxon.license.LicenseProcessingException
- when a problem occurs reading or validating licensespublic static void setLicense(java.lang.String s) throws chemaxon.license.LicenseProcessingException
s
- license file content as String
chemaxon.license.LicenseProcessingException
- when a problem occurs reading or validating licensespublic 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 |