Package com.iizix.license.history
Enum Class LicensingHistoryEvent
- All Implemented Interfaces:
Serializable
,Comparable<LicensingHistoryEvent>
,Constable
License system event types used in the
LicensingHistoryEntry
.- Author:
- Christopher Mindus
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Enum Constant Summary
Enum ConstantDescriptionUnknown event: do not use it!License activated.Broken license.License created.License deactivated.Hardware change.Hardware error.Installation (hardware) change.License timestamp.License restored from backup.License revoked by system.System time changed.Trial period beginning.Trial period end.Trial period extended.Change of user.User login.User logout.User has revoked the license.Product version change.Field Summary
Method Summary
Modifier and TypeMethodDescriptionstatic LicensingHistoryEvent
from
(int value) Gets the event from a value.getText()
Gets the English text.toString()
Performs toString() by displaying the text instead of the enum name.static LicensingHistoryEvent
Returns the enum constant of this class with the specified name.static LicensingHistoryEvent[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
Enum Constant Details
CREATED
License created.TRIAL_BEGIN
Trial period beginning.TRIAL_EXTENDED
Trial period extended.TRIAL_END
Trial period end.ACTIVATED
License activated.TIME_CHANGED
System time changed.HARDWARE_CHANGED
Hardware change.INSTALLATION_CHANGED
Installation (hardware) change.VERSION_CHANGED
Product version change.LICENSE_TIMESTAMP
License timestamp.DEACTIVATED
License deactivated.USER_LOGOUT
User logout.USER_LOGIN
User login.USER_CHANGE
Change of user.USER_REVOKED
User has revoked the license.SYSTEM_REVOKED
License revoked by system.BROKEN
Broken license.HARDWARE_ERROR
Hardware error.RESTORED
License restored from backup._UNKNOWN_
Unknown event: do not use it!
Field Details
value
public final int valueThe number.text
The text.
Method Details
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
getText
Gets the English text.- Returns:
- The string in English for the event.
toString
Performs toString() by displaying the text instead of the enum name.- Overrides:
toString
in classEnum<LicensingHistoryEvent>
- Returns:
- The text String.
from
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.