|
||||||||||
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 |
XUI_EDITOR_INDICATOR
|
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()
|
boolean |
hasCommunityLicense()
|
boolean |
hasRuntimeLicense()
|
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. |
boolean |
hasXuiEditorLicense()
|
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 |
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 XUI_EDITOR_INDICATOR
Method Detail |
---|
public static LicenseChecker getInstance()
public static License getLicense()
public static int getEvaluationDaysLeft()
public boolean hasValidLicense()
public boolean hasValidLicenseContext(java.lang.String context)
public boolean hasValidLicense(java.lang.String directoryName, java.lang.String context)
public static License verifyLicense(java.lang.String fileLocation)
fileLocation
- location of the license key filepublic void initializeLicenseInfo()
public boolean hasCommunityLicense()
public boolean hasXuiEditorLicense()
public boolean hasRuntimeLicense()
public java.lang.String getLicenseText()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |