Package com.iizix.license.history
Enum LicensingHistoryEvent
- java.lang.Object
- java.lang.Enum<LicensingHistoryEvent>
- com.iizix.license.history.LicensingHistoryEvent
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LicensingHistoryEvent>
public enum LicensingHistoryEvent extends java.lang.Enum<LicensingHistoryEvent>
License system event types used in theLicensingHistoryEntry.- Author:
- Christopher Mindus
Enum Constant Summary
Enum Constants Enum Constant Description _UNKNOWN_Unknown event: do not use it!ACTIVATEDLicense activated.BROKENBroken license.CREATEDLicense created.DEACTIVATEDLicense deactivated.HARDWARE_CHANGEDHardware change.HARDWARE_ERRORHardware error.INSTALLATION_CHANGEDInstallation (hardware) change.LICENSE_TIMESTAMPLicense timestamp.RESTOREDLicense restored from backup.SYSTEM_REVOKEDLicense revoked by system.TIME_CHANGEDSystem time changed.TRIAL_BEGINTrial period beginning.TRIAL_ENDTrial period end.TRIAL_EXTENDEDTrial period extended.USER_CHANGEChange of user.USER_LOGINUser login.USER_LOGOUTUser logout.USER_REVOKEDUser has revoked the license.VERSION_CHANGEDProduct version change.
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicensingHistoryEventfrom(int value)Gets the event from a value.java.lang.StringgetText()Gets the English text.java.lang.StringtoString()Performs toString() by displaying the text instead of the enum name.static LicensingHistoryEventvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LicensingHistoryEvent[]values()Returns an array containing the constants of this enum type, in the order they are declared.
Enum Constant Detail
CREATED
public static final LicensingHistoryEvent CREATED
License created.
TRIAL_BEGIN
public static final LicensingHistoryEvent TRIAL_BEGIN
Trial period beginning.
TRIAL_EXTENDED
public static final LicensingHistoryEvent TRIAL_EXTENDED
Trial period extended.
TRIAL_END
public static final LicensingHistoryEvent TRIAL_END
Trial period end.
ACTIVATED
public static final LicensingHistoryEvent ACTIVATED
License activated.
TIME_CHANGED
public static final LicensingHistoryEvent TIME_CHANGED
System time changed.
HARDWARE_CHANGED
public static final LicensingHistoryEvent HARDWARE_CHANGED
Hardware change.
INSTALLATION_CHANGED
public static final LicensingHistoryEvent INSTALLATION_CHANGED
Installation (hardware) change.
VERSION_CHANGED
public static final LicensingHistoryEvent VERSION_CHANGED
Product version change.
LICENSE_TIMESTAMP
public static final LicensingHistoryEvent LICENSE_TIMESTAMP
License timestamp.
DEACTIVATED
public static final LicensingHistoryEvent DEACTIVATED
License deactivated.
USER_LOGOUT
public static final LicensingHistoryEvent USER_LOGOUT
User logout.
USER_LOGIN
public static final LicensingHistoryEvent USER_LOGIN
User login.
USER_CHANGE
public static final LicensingHistoryEvent USER_CHANGE
Change of user.
USER_REVOKED
public static final LicensingHistoryEvent USER_REVOKED
User has revoked the license.
SYSTEM_REVOKED
public static final LicensingHistoryEvent SYSTEM_REVOKED
License revoked by system.
BROKEN
public static final LicensingHistoryEvent BROKEN
Broken license.
HARDWARE_ERROR
public static final LicensingHistoryEvent HARDWARE_ERROR
Hardware error.
RESTORED
public static final LicensingHistoryEvent RESTORED
License restored from backup.
_UNKNOWN_
public static final LicensingHistoryEvent _UNKNOWN_
Unknown event: do not use it!
Method Detail
values
public static LicensingHistoryEvent[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LicensingHistoryEvent c : LicensingHistoryEvent.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
valueOf
public static LicensingHistoryEvent valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
getText
public java.lang.String getText()
Gets the English text.- Returns:
- The string in English for the event.
toString
public java.lang.String toString()
Performs toString() by displaying the text instead of the enum name.- Overrides:
toStringin classjava.lang.Enum<LicensingHistoryEvent>- Returns:
- The text String.
from
public static LicensingHistoryEvent from(int value)
Gets the event from a value.- Parameters:
value- The value.- Returns:
- The LicensingHistoryEvent that corresponds with the value (not the ordinal),
_UNKNOWN_if not found. If not found, a log entry with stack trace is done.