java.lang.Object | |
↳ | com.microstrategy.utils.licensing.LicensingSupport |
This class serves as an entrypoint into the
com.microstrategy.utils.licensing
package. It exposes properties
and methods related to the license associated with the installation on the
local machine.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int |
getActivationGracePeriod()
This method is deprecated.
Use
getGracePeriodDays() instead. This
method simply returns a hard-coded value.
| ||||||||||
String |
getActivationURL()
Returns the URL that will be used for activation.
| ||||||||||
static LicensingSupport |
getInstance()
Get an instance of this class.
| ||||||||||
ProductLicenseInfo |
getProductLicenseInfo(int product)
Returns a
ProductLicenseInfo instance that contains cached
license information for the specified product. | ||||||||||
ProductLicenseInfo |
getProductLicenseInfo(int product, boolean refreshCache)
Returns a
ProductLicenseInfo instance that contains license
information for the specified product. | ||||||||||
WebLicenseInfo |
getWebLicenseInfo()
This method is deprecated.
Use
getProductLicenseInfo(int) instead.
| ||||||||||
WebLicenseInfo |
getWebLicenseInfo(boolean refreshCache)
This method is deprecated.
Use
getProductLicenseInfo(int, boolean) instead.
| ||||||||||
boolean |
isRequiredSupportAvailable()
Tells the caller whether the support required for retrieving license
information is available.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This method is deprecated.
Use getGracePeriodDays()
instead. This
method simply returns a hard-coded value.
Returns the grace period for a product that needs to be activated.
Returns the URL that will be used for activation.
Get an instance of this class.
LicensingSupport
instance.
Returns a ProductLicenseInfo
instance that contains cached
license information for the specified product. This cache is refreshed
every 24 hours by default.
product | The desired product, from EnumProducts . |
---|
ProductLicenseInfo
instance with information about the
installation on the local machine.LicensingException | if the support required to retrieve license information is not available. |
---|
Returns a ProductLicenseInfo
instance that contains license
information for the specified product. If refreshCache
is
true, the most recent information is returned; otherwise, cached
information is returned. The cache is refreshed every 24 hours by
default.
product | The desired product, from EnumProducts . |
---|---|
refreshCache | Indicates whether to refresh the cache or return cached information. |
ProductLicenseInfo
instance with information about the
installation on the local machine.LicensingException | if the support required to retrieve license information is not available. |
---|
This method is deprecated.
Use getProductLicenseInfo(int)
instead.
Returns a WebLicenseInfo
instance that contains cached license
information pertaining to Web. This cache is refreshed every 24 hours
by default.
WebLicenseInfo
instance corresponding to the Web
installation on the local machine.LicensingException | if the support required to retrieve license information is not available. |
---|
This method is deprecated.
Use getProductLicenseInfo(int, boolean)
instead.
Returns a WebLicenseInfo
instance that contains license
information pertaining to Web. If refreshCache
is true,
the most recent information is returned; otherwise, cached information
is returned. The cache is refreshed every 24 hours by default.
refreshCache | Indicates whether to refresh the cache or return cached information. |
---|
WebLicenseInfo
instance corresponding to the Web
installation on the local machine.LicensingException | if the support required to retrieve license information is not available. |
---|
Tells the caller whether the support required for retrieving license
information is available. This method will return false if, for
example, any native resources used for retrieving license information
cannot be found on a supported platform, such as MicroStrategy ASPx Web
on Windows. If this method returns false, it is an error condition
(i.e. we should be able to retrieve license information but for some
reason we cannot) and methods like
getWebLicenseInfo
will throw an exception.