Class LicenseDetailsImpl
- java.lang.Object
-
- com.inductiveautomation.ignition.common.licensing.LicenseDetailsImpl
-
- All Implemented Interfaces:
LicenseDetails
,ModuleLicense
,java.io.Serializable
public class LicenseDetailsImpl extends java.lang.Object implements ModuleLicense
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseDetails
DETAIL_KEY_EDITION, DETAIL_KEY_EXPIRATION, DETAIL_KEY_MIN_BUILD, DETAIL_KEY_PLATFORM_BUNDLED, REDUNDANT_BACKUP
-
-
Constructor Summary
Constructors Constructor Description LicenseDetailsImpl(int version, java.util.List<LicenseRestriction> restrictions)
LicenseDetailsImpl(java.lang.String id, int version)
LicenseDetailsImpl(java.lang.String id, int version, java.util.List<LicenseRestriction> restrictions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
java.lang.String
getLicenseDetail(java.lang.String key)
The value of the LicenseRestriction with the given name.java.util.List<LicenseRestriction>
getLicenseDetails()
Returns all of the license details as a listjava.lang.String
getModuleId()
Get the module id this license applies to.int
getVersion()
The major version number that this license is good forint
hashCode()
java.lang.String
toString()
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseDetails
checkFlag, getExpirationDate, isPlatformDetails
-
-
-
-
Constructor Detail
-
LicenseDetailsImpl
public LicenseDetailsImpl(int version, java.util.List<LicenseRestriction> restrictions)
-
LicenseDetailsImpl
public LicenseDetailsImpl(java.lang.String id, int version)
-
LicenseDetailsImpl
public LicenseDetailsImpl(java.lang.String id, int version, java.util.List<LicenseRestriction> restrictions)
-
-
Method Detail
-
getModuleId
public java.lang.String getModuleId()
Description copied from interface:LicenseDetails
Get the module id this license applies to.- Specified by:
getModuleId
in interfaceLicenseDetails
- Returns:
- the module id this license applies to.
-
getLicenseDetail
@Nullable public java.lang.String getLicenseDetail(java.lang.String key)
Description copied from interface:LicenseDetails
The value of the LicenseRestriction with the given name.- Specified by:
getLicenseDetail
in interfaceLicenseDetails
- Returns:
- null if no license restriction with name==key is found.
-
getLicenseDetails
public java.util.List<LicenseRestriction> getLicenseDetails()
Description copied from interface:LicenseDetails
Returns all of the license details as a list- Specified by:
getLicenseDetails
in interfaceLicenseDetails
-
getVersion
public int getVersion()
Description copied from interface:LicenseDetails
The major version number that this license is good for- Specified by:
getVersion
in interfaceLicenseDetails
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-