public class LicenseManager extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALIGNMENT
Identifier of product: Alignment
|
static String |
CALCULATIONS_PACK
Identifier of product: Calculations Pack
|
static String |
CARTRIDGE
Identifier of product: JChem Cartridge
|
static String |
CHARGE_PLUGIN_GROUP
Identifier of plugin: Charge Plugin Group
|
static String |
CHEM_CURATOR_COMPOUND
Identifier of product: ChemCurator Compound
|
static String |
CHEM_CURATOR_FULL
Identifier of product: ChemCurator Markush
|
static String |
CHEM_CURATOR_VIEWER
Identifier of product: ChemCurator Viewer
|
static String |
CHINESE_NAME_TO_STRUCTURE
Identifier of product: Chinese Name to Structure
|
static String |
CONFORMATION_PLUGIN_GROUP
Identifier of plugin: Conformation Plugin Group
|
static String |
DOCUMENT_TO_DATABASE
Identifier of product: Document to Structure
|
static String |
DOCUMENT_TO_STRUCTURE
Identifier of product: Document to Database
|
static String |
ECFP_FCFP
Identifier of product: Molecular Descriptors
|
static String |
FRAGMENTER
Identifier of product: Fragmenter
|
static String |
GEOMETRY_PLUGIN_GROUP
Identifier of plugin: Geometry Plugin Group
|
static String |
HBDA_PLUGIN
Identifier of plugin: HBDA Plugin
|
static String |
HUCKEL_ANALYSIS_PLUGIN
Identifier of plugin: Huckel Analysis Plugin
|
static String |
INSTANT_JCHEM
Identifier of product: Instant JChem
|
static String |
INSTANT_JCHEM_SERVER
Identifier of product: Instant JChem Server
|
static String |
INSTANT_JCHEM_VIZ
Identifier of product: Instant JChem VIZ
|
static String |
ISOMERS_PLUGIN_GROUP
Identifier of plugin: Isomers Plugin Group
|
static String |
IUPAC_NAMING_PLUGIN
Identifier of plugin: IUPAC Naming Plugin
|
static String |
JAPANESE_NAME_TO_STRUCTURE
Identifier of product: Japanese Name to Structure
|
static String |
JCHEM
Identifier of product: JChem Base
|
static String |
JCHEM_FOR_EXCEL
Identifier of product: JChem for Excel
|
static String |
JCHEM_FOR_OFFICE
Identifier of product: JChem for Office
|
static String |
JCHEM_FOR_SHAREPOINT
Identifier of product: JChem for SharePoint
|
static String |
JCHEM_FOR_SHAREPOINT_SEARCH
Identifier of product: JChem for SharePoint Search
|
static String |
JKLUSTOR
Identifier of product: JKlustor
|
static String |
MARKUSH_EDITOR
Identifier of product: Markush Editor
|
static String |
MARKUSH_ENUM_PLUGIN
Identifier of plugin: Markush Enumeration Plugin
|
static String |
MARKUSH_SEARCH
Identifier of product: Markush Search
|
static String |
MARVIN_APPLETS
Identifier of product: Marvin Applets
|
static String |
MARVIN_BEANS
Identifier of product: Marvin Beans
|
static String |
MCES
Identifier of product: MCES
|
static String |
METABOLIZER
Identifier of product: Metabolizer
|
static String |
MOLECULAR_DESCRIPTORS
Identifier of product: Molecular Descriptors
|
static String |
NAME_TO_STRUCTURE
Identifier of product: Name to Structure
|
static String |
NMR
Identifier of product: NMR plugin
|
static String |
PARTITIONING_PLUGIN_GROUP
Identifier of plugin: Partitioning Plugin Group
|
static String |
PLEXUS
Identifier of product: Plexus
|
static String |
PREDICTOR_PLUGIN
Identifier of product: Predictor Plugin
|
static String |
PROTONATION_PLUGIN_GROUP
Identifier of plugin: Protonation Plugin Group
|
static String |
REACTOR
Identifier of product: Reactor
|
static String |
REFRACTIVITY_PLUGIN
Identifier of plugin: Refractivity Plugin
|
static String |
REGISTRATION_SYSTEM
Identifier of product: Structure Checker
|
static String |
SCREEN
Identifier of product: Screen
|
static String |
SCREEN3D
Identifier of product: 3D Screen
|
static String |
STANDARDIZER
Identifier of product: Standardizer
|
static String |
STRUCTURAL_FRAMEWORKS_PLUGIN
Identifier of product: Structural Frameworks Plugin
|
static String |
STRUCTURE_CHECKER
Identifier of product: Structure Checker
|
static String |
STRUCTURE_TO_NAME
Identifier of product: Structure to Name
|
static String |
WEB_SERVICES_SERVER
Identifier of product: Web Services Server
|
Constructor and Description |
---|
LicenseManager() |
Modifier and Type | Method and Description |
---|---|
static JPanel |
createLicenseManagerPanel()
Creates the main panel which is used for end-user license managing.
|
static String |
getLicenseExceptionMessage()
Returns the common message used at license problems.
|
static JPanel |
getLicenseExceptionPanel(chemaxon.license.LicenseException exc)
Returns the common swing component used to indicate missing license.
|
static JPanel |
getLicenseExceptionPanel(String product)
Returns the common swing component used to indicate missing license.
|
static ArrayList<String> |
getPluginList()
Returns the list of the plugin identifiers known by the license manager.
|
static ArrayList<String> |
getProductList(boolean includePlugins)
Returns the list of the product identifiers known by the license manager.
|
static boolean |
isLicensed(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(String s)
Sets a pre-read license file to the license manager to read and validate licenses from.
|
static void |
setLicenseFile(String licensePath)
Sets the license file location to the license manager to read and validate
licenses from.
|
public static final String MARVIN_APPLETS
public static final String MARVIN_BEANS
public static final String INSTANT_JCHEM
public static final String INSTANT_JCHEM_VIZ
public static final String INSTANT_JCHEM_SERVER
public static final String JCHEM
public static final String CARTRIDGE
public static final String STANDARDIZER
public static final String SCREEN
public static final String MCES
public static final String SCREEN3D
public static final String ALIGNMENT
public static final String MOLECULAR_DESCRIPTORS
public static final String ECFP_FCFP
public static final String REACTOR
public static final String FRAGMENTER
public static final String JKLUSTOR
public static final String METABOLIZER
public static final String MARKUSH_EDITOR
public static final String MARKUSH_SEARCH
public static final String CHEM_CURATOR_VIEWER
public static final String CHEM_CURATOR_COMPOUND
public static final String CHEM_CURATOR_FULL
public static final String NAME_TO_STRUCTURE
public static final String CHINESE_NAME_TO_STRUCTURE
public static final String JAPANESE_NAME_TO_STRUCTURE
public static final String DOCUMENT_TO_STRUCTURE
public static final String DOCUMENT_TO_DATABASE
public static final String STRUCTURE_TO_NAME
public static final String JCHEM_FOR_EXCEL
public static final String JCHEM_FOR_OFFICE
public static final String CALCULATIONS_PACK
public static final String WEB_SERVICES_SERVER
public static final String JCHEM_FOR_SHAREPOINT
public static final String JCHEM_FOR_SHAREPOINT_SEARCH
public static final String STRUCTURE_CHECKER
public static final String REGISTRATION_SYSTEM
public static final String PLEXUS
public static final String PROTONATION_PLUGIN_GROUP
public static final String PARTITIONING_PLUGIN_GROUP
public static final String CHARGE_PLUGIN_GROUP
public static final String ISOMERS_PLUGIN_GROUP
public static final String CONFORMATION_PLUGIN_GROUP
public static final String GEOMETRY_PLUGIN_GROUP
public static final String HUCKEL_ANALYSIS_PLUGIN
public static final String REFRACTIVITY_PLUGIN
public static final String HBDA_PLUGIN
public static final String MARKUSH_ENUM_PLUGIN
public static final String IUPAC_NAMING_PLUGIN
public static final String STRUCTURAL_FRAMEWORKS_PLUGIN
public static final String PREDICTOR_PLUGIN
public static final String NMR
public static ArrayList<String> getProductList(boolean includePlugins)
includePlugins
- whether the list should contain the name of the plugins as wellpublic static ArrayList<String> getPluginList()
public static String getLicenseExceptionMessage()
public static JPanel getLicenseExceptionPanel(String product)
product
- identifier of a productpublic static JPanel getLicenseExceptionPanel(chemaxon.license.LicenseException exc)
exc
- a LicenseException thrown at license checkingpublic static JPanel createLicenseManagerPanel()
public static void setLicenseFile(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 URLLicenseProcessingException
- when a problem occurs reading or validating licensespublic static void setLicense(String s) throws chemaxon.license.LicenseProcessingException
s
- license file content as StringLicenseProcessingException
- when a problem occurs reading or validating licensespublic static void refresh()
public static boolean isLicensed(String product)
product
- identifier of a product