Class ActivatedLicenseState
- java.lang.Object
-
- com.inductiveautomation.ignition.common.licensing.ActivatedLicenseState
-
- All Implemented Interfaces:
LicenseState
,java.io.Serializable
public class ActivatedLicenseState extends java.lang.Object implements LicenseState
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivatedLicenseState(LicenseDetails platformLicense, ModuleLicense moduleLicense)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
LicenseMode
getLicenseMode()
ModuleLicense
getModuleLicense()
LicenseDetails
getPlatformLicense()
java.util.Date
getTrialExpirationDate()
The Date at which this demo's trial period will expire, or expired at if already expired.boolean
isTrialExpired()
Whether or not this demo's trial period has expired.java.lang.String
toString()
-
-
-
Constructor Detail
-
ActivatedLicenseState
public ActivatedLicenseState(LicenseDetails platformLicense, ModuleLicense moduleLicense)
-
-
Method Detail
-
getLicenseMode
public LicenseMode getLicenseMode()
- Specified by:
getLicenseMode
in interfaceLicenseState
- Returns:
- the
LicenseMode
for this given LicenseState.
-
getModuleLicense
public ModuleLicense getModuleLicense()
- Specified by:
getModuleLicense
in interfaceLicenseState
- Returns:
- the ModuleLicense in effect for this LicenseState for this particular module. If the LicenseMode is not Activated this can be null.
-
getPlatformLicense
public LicenseDetails 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()
Description copied from interface:LicenseState
Whether or not this demo's trial period has expired. Only relevant when the LicenseMode is Trial.- Specified by:
isTrialExpired
in interfaceLicenseState
- Returns:
- true if the demo's trial has expired
-
getTrialExpirationDate
public java.util.Date 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
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-