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 aInvalidLicenseState
record class. -
Method Summary
Modifier and TypeMethodDescriptioncause()
Returns the value of thecause
record component.final boolean
Indicates 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 int
hashCode()
Returns a hash code value for this object.boolean
Technically 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 aInvalidLicenseState
record class.- Parameters:
cause
- the value for thecause
record component
-
-
Method Details
-
getTrialExpirationDate
Description copied from interface:LicenseState
The 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:
getTrialExpirationDate
in interfaceLicenseState
-
getLicenseMode
- Specified by:
getLicenseMode
in interfaceLicenseState
- Returns:
- the
LicenseMode
for this given LicenseState.
-
getModuleLicense
- Specified by:
getModuleLicense
in 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:
getPlatformLicense
in 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:
isTrialExpired
in 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 thecause
record component.- Returns:
- the value of the
cause
record component
-