Package com.seeq.utilities.license
Class LicenseEntry
java.lang.Object
com.seeq.utilities.license.LicenseEntry
- Direct Known Subclasses:
License
,LicensedFeature
Represents the base class for an end-user enforceable software license entry. The license entry may represent a
particular product level or one of its features which is licensed separately.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The validity if the license-- anything other than "Valid" is considered invalid (duh). -
Method Summary
Modifier and TypeMethodDescriptionint
Computes the number of days before this license will expireComputes the validity of this license entry based on initial validity value and valid through periodboolean
isValid()
Returns true if the current license entry is valid and still inside valid through period
-
Method Details
-
isValid
public boolean isValid()Returns true if the current license entry is valid and still inside valid through period- Returns:
- true if the current license entry is valid and still inside valid through period
-
computeValidity
Computes the validity of this license entry based on initial validity value and valid through period- Returns:
- the validity of this license entry calculated based on initial validity value and valid through period
-
computeDaysToExpiration
public int computeDaysToExpiration()Computes the number of days before this license will expire- Returns:
- the number of days before this license will expire
-