Package biz.onixs.cme.stp.handler
Class License
- java.lang.Object
-
- biz.onixs.cme.stp.handler.License
-
public abstract class License extends Object
Base license implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLicense.CustomerLicense customer.static classLicense.ProductLicensed product.static classLicense.TypeLicense type.
-
Constructor Summary
Constructors Constructor Description License()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description License.CustomergetCustomer()Returns license customer.intgetDaysLeft()Returns the number of days left until license is expired.LocalDategetIntervalEnd()Returns license validity interval end date.LocalDategetIntervalStart()Returns license validity interval start date.License.TypegetType()Returns license type.StringgetVersion()Returns license version.booleanisExpired()Returns whether license is expired.booleanisExpiredWithinDays(int days)Returns whether license is expiring within the specified number of days.StringtoString()
-
-
-
Method Detail
-
getVersion
public String getVersion()
Returns license version.- Returns:
- license version
-
getType
public License.Type getType()
Returns license type.- Returns:
- license type
-
getCustomer
public License.Customer getCustomer()
Returns license customer.- Returns:
- license customer
-
getIntervalStart
public LocalDate getIntervalStart()
Returns license validity interval start date.- Returns:
- license validity interval start date
-
getIntervalEnd
public LocalDate getIntervalEnd()
Returns license validity interval end date.- Returns:
- license validity interval end date
-
isExpired
public boolean isExpired()
Returns whether license is expired.- Returns:
- whether license is expired
-
getDaysLeft
public int getDaysLeft()
Returns the number of days left until license is expired.- Returns:
- number of days left until license is expired
-
isExpiredWithinDays
public boolean isExpiredWithinDays(int days)
Returns whether license is expiring within the specified number of days.- Parameters:
days- days number- Returns:
- whether license is expiring within the specified number of days
-
-