public abstract class License extends Object
Modifier and Type | Class and Description |
---|---|
static class |
License.Customer
License customer.
|
static class |
License.Product
Licensed product.
|
static class |
License.Type
License type.
|
Constructor and Description |
---|
License() |
Modifier and Type | Method and Description |
---|---|
License.Customer |
getCustomer()
Returns license customer.
|
int |
getDaysLeft()
Returns the number of days left until license is expired.
|
org.joda.time.Interval |
getInterval()
Returns license validity interval.
|
License.Type |
getType()
Returns license type.
|
String |
getVersion()
Returns license version.
|
boolean |
isExpired()
Returns whether license is expired.
|
boolean |
isExpiredWithinDays(int days)
Returns whether license is expiring within the specified number of days.
|
String |
toString() |
public String getVersion()
public License.Type getType()
public License.Customer getCustomer()
public org.joda.time.Interval getInterval()
public boolean isExpired()
public int getDaysLeft()
public boolean isExpiredWithinDays(int days)
days
- days numberCopyright © 2012–2024 Onix Solutions. All rights reserved.