|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jaxfront.core.util.LicenseChecker
public class LicenseChecker
This class represents JAXFront's License Checker which is responsible to create license keys for X days as well as to check if a valid license key can be found.
| Field Summary | |
|---|---|
static java.lang.String |
COMMUNITY_EDITION
|
static java.lang.String |
ENTERPRISE_EDITION
|
static java.lang.String |
ENTERPRISE_STUDIO_EDITION
|
static java.lang.String |
PROFESSIONAL_EDITION
|
static java.lang.String |
STANDARD_EDITION
|
| Method Summary | |
|---|---|
static int |
getEvaluationDaysLeft()
|
static LicenseChecker |
getInstance()
Returns the singleton instance of this class. |
static License |
getLicense()
Returns the current license. |
java.lang.String |
getLicenseText()
|
static java.lang.String |
getVersion()
|
boolean |
hasCommunityLicense()
|
boolean |
hasValidLicense()
Returns true if the current license is valid. |
boolean |
hasValidLicense(java.lang.String directoryName,
java.lang.String context)
Returns true if a valid lic file is found in the passed directory |
boolean |
hasValidLicenseContext(java.lang.String context)
Returns true if the current license is valid & the context tag is found in the text. |
static void |
initializeLicenseInfo()
1) Look in user-dir if there is a directory called 'lic' and search for a .lic file. 2) Look in the jaxfront-properties (user home dir) for a stored license location 3) Look in the classpath (all jars...) if a file named 'jaxfront.lic' is found |
boolean |
isEnterpriseEdition()
|
boolean |
isEnterpriseStudioEdition()
|
boolean |
isProfessionalEdition()
|
boolean |
isStandardEdition()
|
static License |
verifyLicense(java.lang.String fileLocation)
Reads and sets a license key. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String COMMUNITY_EDITION
public static final java.lang.String ENTERPRISE_EDITION
public static final java.lang.String ENTERPRISE_STUDIO_EDITION
public static final java.lang.String PROFESSIONAL_EDITION
public static final java.lang.String STANDARD_EDITION
| Method Detail |
|---|
public static int getEvaluationDaysLeft()
public static LicenseChecker getInstance()
public static License getLicense()
public java.lang.String getLicenseText()
public static java.lang.String getVersion()
public boolean hasCommunityLicense()
public boolean hasValidLicense()
public boolean hasValidLicense(java.lang.String directoryName,
java.lang.String context)
public boolean hasValidLicenseContext(java.lang.String context)
public static void initializeLicenseInfo()
public boolean isEnterpriseEdition()
public boolean isEnterpriseStudioEdition()
public boolean isProfessionalEdition()
public boolean isStandardEdition()
public static License verifyLicense(java.lang.String fileLocation)
fileLocation - location of the license key file
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||