Package com.inet.report.config
Class LicenseKeyInfo
java.lang.Object
com.inet.report.config.LicenseKeyInfo
Class providing information about a license key.
- Since:
- 8.0
-
Constructor Summary
ConstructorDescriptionLicenseKeyInfo
(String licenseKey) Blocks for 2 seconds, then returns an object holding information about the license key given. -
Method Summary
Modifier and TypeMethodDescriptionstatic final @Nonnull LicenseKeyInfo
Get the current LicenseKeyInfo which show the state of the current licensefinal String
Get the error message if the license is invalidfinal String
Returns the licensee of the license.final com.inet.config.LicenseInfo
FOR INTERNAL USE ONLY Get the underlying LicenseInfo.final String
Returns a text description of the licensefinal String
The watermark textfinal boolean
Check if there is an expires date.final boolean
isPlus()
Returns whether or not the license is an i-net Clear Reports Plus license.final boolean
isSite()
Returns whether the license is a Site license or not.final boolean
isValid()
Returns whether the key is a valid license key or not.
-
Constructor Details
-
LicenseKeyInfo
Blocks for 2 seconds, then returns an object holding information about the license key given.- Parameters:
licenseKey
- License Key to check, null the LicenseKeyInfo of the current license will be return- Throws:
RuntimeException
- if a creation is impossible- Since:
- 14.0
-
-
Method Details
-
getCurrent
Get the current LicenseKeyInfo which show the state of the current license- Returns:
- the current LicenseKeyInfo
- Since:
- 15.0
-
isPlus
public final boolean isPlus()Returns whether or not the license is an i-net Clear Reports Plus license.- Returns:
- whether the license is an i-net Clear Reports Plus license
- Since:
- 8.0
-
getLicenseText
Returns a text description of the license- Returns:
- text description of the license
- Since:
- 8.0
-
getLicensee
Returns the licensee of the license. This is null for an invalid license.- Returns:
- licensee information
- Since:
- 8.0
-
isValid
public final boolean isValid()Returns whether the key is a valid license key or not.- Returns:
- true if the key is a valid license key, false otherwise
- Since:
- 8.0
-
getErrorMessage
Get the error message if the license is invalid- Returns:
- the error message or null
- Since:
- 15.0
-
hasExpiredDate
public final boolean hasExpiredDate()Check if there is an expires date.- Returns:
- true, if there a date
- Since:
- 15.0
-
getWaterMark
The watermark text- Returns:
- the watermark or null.
- Since:
- 15.0
-
isSite
public final boolean isSite()Returns whether the license is a Site license or not.- Returns:
- true if the license is a Site license, false otherwise
- Since:
- 8.0
-
getLicenseInfo
public final com.inet.config.LicenseInfo getLicenseInfo()FOR INTERNAL USE ONLY Get the underlying LicenseInfo.- Returns:
- the LicenseInfo
- Since:
- 15.0
-