Package de.xima.fc.mdl.license
Class ItemLicenseModel
- java.lang.Object
-
- de.xima.fc.mdl.license.ItemLicenseModel
-
- All Implemented Interfaces:
IItemLicenseModel
,Serializable
public class ItemLicenseModel extends Object implements IItemLicenseModel
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ItemLicenseModel(byte[] licenseFileData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDateTime
getDate(String featureName)
String
getItemKey()
String
getItemLicenseKey()
String
getItemName()
javax0.license3j.License
getLicense()
Initializes the license (if needed) and returns themLocalDateTime
getLicenseCreationDate()
LocalDateTime
getLicenseExpireDate()
byte[]
getLicenseFileData()
LocalDateTime
getLicenseModificationDate()
String
getParentLicenseKey()
String
getString(String featureName)
boolean
isExpired()
boolean
isLicenseOK()
-
-
-
Method Detail
-
getLicense
public javax0.license3j.License getLicense()
Initializes the license (if needed) and returns them- Returns:
- the license
-
isLicenseOK
public boolean isLicenseOK()
- Specified by:
isLicenseOK
in interfaceIItemLicenseModel
- Returns:
true
if the license-file is ok,false
otherwise
-
isExpired
public boolean isExpired()
- Specified by:
isExpired
in interfaceIItemLicenseModel
- Returns:
true
if the license is expired,false
otherwise
-
getParentLicenseKey
public String getParentLicenseKey()
- Specified by:
getParentLicenseKey
in interfaceIItemLicenseModel
-
getItemKey
public String getItemKey()
- Specified by:
getItemKey
in interfaceIItemLicenseModel
-
getItemName
public String getItemName()
- Specified by:
getItemName
in interfaceIItemLicenseModel
-
getItemLicenseKey
public String getItemLicenseKey()
-
getLicenseCreationDate
public LocalDateTime getLicenseCreationDate()
- Specified by:
getLicenseCreationDate
in interfaceIItemLicenseModel
- Returns:
- the creation date of the license
-
getLicenseModificationDate
public LocalDateTime getLicenseModificationDate()
- Specified by:
getLicenseModificationDate
in interfaceIItemLicenseModel
- Returns:
- the modification date of the license
-
getLicenseExpireDate
public LocalDateTime getLicenseExpireDate()
- Specified by:
getLicenseExpireDate
in interfaceIItemLicenseModel
- Returns:
- the expire date of the license
-
getDate
public LocalDateTime getDate(String featureName)
-
getLicenseFileData
public byte[] getLicenseFileData()
-
-