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 TypeMethodDescriptionbooleangetBoolean(ELicenseFeature feature) booleangetBoolean(ELicenseFeature feature, boolean defaultValue) booleangetBoolean(String featureName) booleangetBoolean(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.LicenseInitializes the license (if needed) and returns thembyte[]The license binarygetLicenseStatus(String parentKey) Checks the license stategetNumber(ELicenseFeature feature) getNumber(ELicenseFeature feature, Number defaultValue) static StringgetProcessingLicenseKey(EWorkflowNodeType workflowNodeType) static StringgetProcessingLicenseKey(String typeSubKey) getString(ELicenseFeature feature) getString(ELicenseFeature feature, String defaultValue) static StringgetTriggerLicenseKey(EWorkflowTriggerType workflowTriggerType) static StringgetTriggerLicenseKey(String typeSubKey) booleanhasFeature(ELicenseFeature feature) booleanhasFeature(String featureName) booleanbooleanbooleanbooleanbooleanbooleanbooleanisValid(ELicenseFeature feature) booleanbooleanisValidLicense(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:
trueto skip the hardware check and allow all hardware IDs,falseto perform the hardware ID check. May be useful for development and testing.
-
isSubLicense
public boolean isSubLicense()- Returns:
trueif the license is an sub-license,falseotherwise
-
isLicenseOK
public boolean isLicenseOK()- Returns:
trueif the license-file is ok,falseotherwise
-
isDemoLicense
public boolean isDemoLicense()- Returns:
trueif the license is an demo,falseotherwise
-
isMaintenanceExpired
public boolean isMaintenanceExpired()- Returns:
trueif the maintenance-period is expired,falseotherwise
-
isExpired
public boolean isExpired()- Returns:
trueif the license is expired,falseotherwise
-
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:
trueif the license is valid,falseotherwise
-
getLicenseStatus
Checks the license state- Parameters:
parentKey- the parent-key to check- Returns:
- the license state
-
hasFeature
- Parameters:
feature-ELicenseFeaturethe feature to check- Returns:
trueif the feature is defined,falseotherwise
-
hasFeature
- Parameters:
featureName- the name of the feature to check- Returns:
trueif the feature is defined,falseotherwise
-
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:
trueif the feature is valid,falseotherwise
-
isValid
- Parameters:
featureName- the name of the feature to check- Returns:
trueif the feature is valid,falseotherwise
-
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
-