com.microstrategy.utils.licensing.ProductLicenseInfo |
This interface provides information about a product license. Examples of
products are "Web Reporter", "Web Analyst" and "Mobile". Instances of this
interface can be obtained by calling getProductLicenseInfo(int)
or getProductLicenseInfo(int, boolean)
.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract int |
getDaysLeft()
Returns the number of days before the license expires, if applicable.
| ||||||||||
abstract int |
getGracePeriodDays()
Returns the number of days in the grace period implied by the status (as
returned by
getStatus() ), if applicable. | ||||||||||
abstract int |
getProduct()
Returns the product.
| ||||||||||
abstract int |
getStatus()
Returns the license status, from
EnumProductLicenseStatuses . | ||||||||||
abstract boolean |
showWarningToAdminOnly()
In cases where an expiration warning needs to be shown (i.e.
|
Returns the number of days before the license expires, if applicable.
getStatus()
)
is one of the NotExpired
statuses, this method returns the
number of days until the license expires. If the status is one of the
Expired
statuses, this method returns 0. Otherwise, this
method returns -1.
Returns the number of days in the grace period implied by the status (as
returned by getStatus()
), if applicable.
Activation
statuses, this method returns
the number of days in the activation grace period. For the
Evaluation
statuses, this method returns the time-bound
license period. Otherwise, this method returns -1.
Returns the license status, from EnumProductLicenseStatuses
.
In cases where an expiration warning needs to be shown (i.e.
getStatus()
returns one of the NotExpired
statuses),
this method returns whether the warning should be shown only to the
administrator.