Record Class InvalidLicenseState
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.licensing.InvalidLicenseState
- All Implemented Interfaces:
LicenseState,Serializable
Relevant only for Edge and Maker editions. These editions may not be able to run some modules based on licensing
restrictions. We can't hot-unload the modules anymore, but we can force the module licenses to "Trial Mode", which
will effectively prevent them from doing anything useful while the invalid license state is in place.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.inductiveautomation.ignition.common.licensing.LicenseState
LicenseState.GsonAdapter -
Constructor Summary
ConstructorsConstructorDescriptionInvalidLicenseState(String cause) Creates an instance of aInvalidLicenseStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptioncause()Returns the value of thecauserecord component.final booleanIndicates whether some other object is "equal to" this one.The Date at which this demo's trial period will expire, or expired at if already expired.final inthashCode()Returns a hash code value for this object.booleanTechnically this isn't quite accurate since "Trial Expired" generally means that a gateway's trial mode can be reset to 2 hours.toString()Returns a string representation of this record class.
-
Constructor Details
-
InvalidLicenseState
Creates an instance of aInvalidLicenseStaterecord class.- Parameters:
cause- the value for thecauserecord component
-
-
Method Details
-
getTrialExpirationDate
Description copied from interface:LicenseStateThe Date at which this demo's trial period will expire, or expired at if already expired. Not relevant unless the LicenseMode is Demo.- Specified by:
getTrialExpirationDatein interfaceLicenseState
-
getLicenseMode
- Specified by:
getLicenseModein interfaceLicenseState- Returns:
- the
LicenseModefor this given LicenseState.
-
getModuleLicense
- Specified by:
getModuleLicensein interfaceLicenseState- Returns:
- the LicenseDetails in effect for this LicenseState for this particular module. If the LicenseMode is not Activated this can be null.
-
getPlatformLicense
- Specified by:
getPlatformLicensein interfaceLicenseState- Returns:
- the PlatformLicense in effect for this LicenseState. If the LicenseMode is not Activated this can be null.
-
isTrialExpired
public boolean isTrialExpired()Technically this isn't quite accurate since "Trial Expired" generally means that a gateway's trial mode can be reset to 2 hours. But many, many systems have infrastructure built around the "Trial Expired" idea. This includes things like OPC status codes, EAM agent functionality, etc. Some of these systems still need to communicate with 8.1 gateways, which understand "Trial Expired" but not "Invalid license".- Specified by:
isTrialExpiredin interfaceLicenseState- Returns:
- True, indicating that a module should be functionally disabled.
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
cause
Returns the value of thecauserecord component.- Returns:
- the value of the
causerecord component
-