Package de.xima.fc.mdl.license
Class LicenseModel
java.lang.Object
de.xima.fc.mdl.license.LicenseModel
- All Implemented Interfaces:
Serializable
Model to access an license based on there file-data
- Author:
- XIMA MEDIA GmbH, Dresden
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionLicenseModel
(byte[] licenseFileData) LicenseModel
(byte[] licenseFileData, List<byte[]> subLicensesFileData) -
Method Summary
Modifier and TypeMethodDescriptionboolean
getBoolean
(ELicenseFeature feature) boolean
getBoolean
(ELicenseFeature feature, boolean defaultValue) boolean
getBoolean
(String featureName) boolean
getBoolean
(String featureName, boolean defaultValue) getComment
(ELicenseFeature feature) getComment
(String featureName) getDate
(ELicenseFeature feature) getDate
(ELicenseFeature feature, LocalDateTime defaultValue) getDate
(String featureName, LocalDateTime defaultValue) getExpireDate
(ELicenseFeature feature) getExpireDate
(String featureName) String[]
javax0.license3j.License
Initializes the license (if needed) and returns thembyte[]
The license binarygetLicenseStatus
(String parentKey) Checks the license stategetNumber
(ELicenseFeature feature) getNumber
(ELicenseFeature feature, Number defaultValue) static String
getProcessingLicenseKey
(EWorkflowNodeType workflowNodeType) static String
getProcessingLicenseKey
(String typeSubKey) getString
(ELicenseFeature feature) getString
(ELicenseFeature feature, String defaultValue) static String
getTriggerLicenseKey
(EWorkflowTriggerType workflowTriggerType) static String
getTriggerLicenseKey
(String typeSubKey) boolean
hasFeature
(ELicenseFeature feature) boolean
hasFeature
(String featureName) boolean
boolean
boolean
boolean
boolean
boolean
boolean
isValid
(ELicenseFeature feature) boolean
boolean
isValidLicense
(String parentKey)
-
Constructor Details
-
LicenseModel
public LicenseModel(byte[] licenseFileData) - Parameters:
licenseFileData
- the license-file
-
LicenseModel
- Parameters:
licenseFileData
- the license-filesubLicensesFileData
- list of sub-license files
-
-
Method Details
-
getProcessingLicenseKey
-
getProcessingLicenseKey
-
getTriggerLicenseKey
-
getTriggerLicenseKey
-
getLicense
public javax0.license3j.License getLicense()Initializes the license (if needed) and returns them- Returns:
- the license
-
getLicenseFileData
public byte[] getLicenseFileData()The license binary- Returns:
- the binary data of the license
-
isSkipHardwareIdCheck
public boolean isSkipHardwareIdCheck()- Returns:
true
to skip the hardware check and allow all hardware IDs,false
to perform the hardware ID check. May be useful for development and testing.
-
isSubLicense
public boolean isSubLicense()- Returns:
true
if the license is an sub-license,false
otherwise
-
isLicenseOK
public boolean isLicenseOK()- Returns:
true
if the license-file is ok,false
otherwise
-
isDemoLicense
public boolean isDemoLicense()- Returns:
true
if the license is an demo,false
otherwise
-
isMaintenanceExpired
public boolean isMaintenanceExpired()- Returns:
true
if the maintenance-period is expired,false
otherwise
-
isExpired
public boolean isExpired()- Returns:
true
if the license is expired,false
otherwise
-
getLicenseKey
- Returns:
- the license key or
null
-
getHardwareIds
- Returns:
- the array of hardware-ids
-
getLicenseName
- Returns:
- the name of the license
-
getLicenseMappingName
- Returns:
- the mapping name of the licnese
-
getVersionKey
- Returns:
- the key of the license version
-
getParentLicenseKey
- Returns:
- the key of the parent license
-
getProductKey
- Returns:
- the key of the product
-
getProductName
- Returns:
- the name of the product
-
getProductVersion
- Returns:
- the version of the product
-
getUserFullName
- Returns:
- the name of the license user
-
getUserEMail
- Returns:
- the email of the license user
-
getUserCompanyName
- Returns:
- the name of the company
-
getProfContactName
- Returns:
- the name of the professional contact
-
getProfContactMail
- Returns:
- the mail of the professional contact
-
getProfContactPhone
- Returns:
- the phone number of the professional contact
-
getTechContactPhone
- Returns:
- the phone number of the technical contact
-
getTechContactName
- Returns:
- the name of the technical contact
-
getTechContactMail
- Returns:
- the mail of the technical contact
-
getUserTelNumber
- Returns:
- the phone number of the user
-
getLicenseCreationDate
- Returns:
- the creation date of the license
-
getLicenseModificationDate
- Returns:
- the modification date of the license
-
getLicenseExpireDate
- Returns:
- the expire date of the license
-
getMaintenanceExpireDate
- Returns:
- the maintenance expire date of the license
-
getSubLicenseFeaturesMap
-
getRawData
-
isValidLicense
- Parameters:
parentKey
- the parent-key to check- Returns:
true
if the license is valid,false
otherwise
-
getLicenseStatus
Checks the license state- Parameters:
parentKey
- the parent-key to check- Returns:
- the license state
-
hasFeature
- Parameters:
feature
-ELicenseFeature
the feature to check- Returns:
true
if the feature is defined,false
otherwise
-
hasFeature
- Parameters:
featureName
- the name of the feature to check- Returns:
true
if the feature is defined,false
otherwise
-
getString
- Parameters:
feature
- the feature to get- Returns:
- the value
-
getBoolean
- Parameters:
feature
- the feature to get- Returns:
- the value
-
getNumber
- Parameters:
feature
- the feature to get- Returns:
- the value
-
getDate
- Parameters:
feature
- the feature to get- Returns:
- the value
-
getString
- Parameters:
feature
- the feature to getdefaultValue
- the default value to return if the feature is not defined- Returns:
- the value
-
getBoolean
- Parameters:
feature
- the feature to getdefaultValue
- the default value to return if the feature is not defined- Returns:
- the value
-
getNumber
- Parameters:
feature
- the feature to getdefaultValue
- the default value to return if the feature is not defined- Returns:
- the value
-
getDate
- Parameters:
feature
- the feature to getdefaultValue
- the default value to return if the feature is not defined- Returns:
- the value
-
isValid
- Parameters:
feature
- the feature to check- Returns:
true
if the feature is valid,false
otherwise
-
isValid
- Parameters:
featureName
- the name of the feature to check- Returns:
true
if the feature is valid,false
otherwise
-
getExpireDate
- Parameters:
feature
- the feature to get the expire date of- Returns:
- the expire date of the feature or
null
-
getExpireDate
- Parameters:
featureName
- the name of the feature to get the expire date of- Returns:
- the expire date of the feature or
null
-
getComment
- Parameters:
feature
- the feature to get the comment of- Returns:
- the comment of the feature or
null
-
getComment
- Parameters:
featureName
- the name of the feature to get the comment of- Returns:
- the comment of the feature or
null
-
getDate
- Parameters:
featureName
- the name of the feature to get the date value from- Returns:
- the date value of the feature or
null
-
getDate
- Parameters:
featureName
- the name of the feature to get the date value fromdefaultValue
- the default value to return if the feature is not defined- Returns:
- the date value of the feature or the default value
-
getString
- Parameters:
featureName
- the name of the feature to get the string value from- Returns:
- the string value of the feature or
null
-
getString
- Parameters:
featureName
- the name of the feature to get the string value fromdefaultValue
- the default value to return if the feature is not defined- Returns:
- the string value of the feature or the default value
-
getBoolean
- Parameters:
featureName
- the name of the feature to get the boolean value from- Returns:
- the boolean value of the feature or
null
-
getBoolean
- Parameters:
featureName
- the name of the feature to get the boolean value fromdefaultValue
- the default value to return if the feature is not defined- Returns:
- the boolean value of the feature or the default value
-
getNumber
- Parameters:
featureName
- the name of the feature to get the string value from- Returns:
- the number value of the feature or 0
-
getNumber
- Parameters:
featureName
- the name of the feature to get the number value fromdefaultValue
- the default value to return if the feature is not defined- Returns:
- the number value of the feature or the default value
-