|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface LicenseManager
Interface for the service used to parse and validate license files.
Licenses are read from a simple XML file that contains several different
components to activate different parts of the application. Each component is
represented by a License object.
Note: This object is primarily for Blackboard use and should be considered very unstable. It may change substantially in future releases.
| Method Summary | |
|---|---|
void |
assertIsLicensed(java.lang.reflect.AnnotatedElement component)
Similar to isLicensed(), except that exceptions are thrown if the license
check fails. |
void |
assertIsLicensed(java.lang.String componentName)
Similar to isLicensed(), except that exceptions are thrown if the license
check fails. |
java.lang.String |
getAppPack()
|
java.lang.String |
getBuildNumber()
|
java.lang.String |
getClientId()
Returns the client id fromt the LicenseFile |
java.lang.String |
getFamilyNameUpdateHtml()
|
java.lang.String |
getKey()
Returns the validation key from the license file. |
java.util.Date |
getLicenseExpiration(java.lang.String componentName)
Returns the expiration for a given license or null if it never expires. |
java.lang.String |
getLicenseParameter(java.lang.String componentName,
java.lang.String propertyName)
Returns the value of the specified property in the target key or null if the property is not found. |
java.lang.Integer |
getLicenseUnitsParameter(java.lang.String componentName,
java.lang.String propertyName)
Returns the Integer value of the specified property in the target key or null if the property is not found. |
java.lang.String |
getLongProductName()
For the Web: HTML for bold, italic, superscript etc. tagged around each product if multiple products exist. |
java.lang.String |
getLongProductNameHtml()
For the Web: HTML for bold, italic, superscript etc. tagged around each product if multiple products exist. |
java.lang.String |
getLongProductNameHtmlTm()
For the Web: HTML for bold, italic, TM, superscript etc. tagged around each product if multiple products exist. |
java.lang.String |
getMajorReleaseNumber()
|
java.lang.String |
getProductFamilyName()
For the Web: HTML for bold, italic, superscript etc. |
java.lang.String |
getProductFamilyNameHtml()
For the Web: HTML for bold, italic, superscript etc. |
java.lang.String |
getProductFamilyNameHtmlTm()
For the Web: HTML for bold, italic, TM, superscript etc. |
java.lang.String |
getProductName()
Returns the product name from the LicenseFile. |
java.lang.String |
getProductNameKey()
Returns a key that is a transformed version of the product name (used for license-sensitive lookups) |
java.lang.String |
getProductOwnedId()
Returns the product owned id fromt the LicenseFile |
java.lang.String |
getUpdateName()
|
java.lang.String |
getUpdateNameLong()
|
boolean |
isLicensed(java.lang.reflect.AnnotatedElement component)
Method to check whether the specified component name is available and valid. |
boolean |
isLicensed(java.lang.String componentName)
Method to check whether the specified component name is available and valid. |
boolean |
isLicenseUnitsParameterUnlimited(java.lang.String componentName,
java.lang.String propertyName)
Returns true if specified the units parameter is unlimited. |
License[] |
listLicenses()
Returns an array of all License objects read from the license file. |
License |
lookupLicense(java.lang.String componentName)
Returns the License associated with the specified component key. |
LicenseDescriptor |
lookupLicenseDescriptor(java.lang.String componentName)
Looks up human-readable descriptor for specified component. |
void |
runtimeAssertIsLicensed(java.lang.reflect.AnnotatedElement component)
Same as assertIsLicensed(), but exceptions are wrapped in a RuntimeBbServiceException. |
void |
runtimeAssertIsLicensed(java.lang.String componentName)
Same as assertIsLicensed(), but exceptions are wrapped in a RuntimeBbServiceException. |
| Method Detail |
|---|
java.lang.String getProductName()
java.lang.String getProductOwnedId()
java.lang.String getClientId()
java.lang.String getKey()
java.lang.String getProductNameKey()
boolean isLicensed(java.lang.String componentName)
componentName - Component to check
void assertIsLicensed(java.lang.String componentName)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
isLicensed(), except that exceptions are thrown if the license
check fails.
componentName - Component to check.
LicenseNotFoundException - if the license is not found
LicenseExpiredException - If the license is expired
UnlicensedServerException - If the license is not valid to run on this server
void runtimeAssertIsLicensed(java.lang.String componentName)
throws RuntimeBbServiceException
assertIsLicensed(), but exceptions are wrapped in a RuntimeBbServiceException.
Use e.getNestedException() to get the actual LicenseException.
componentName - License component to check.
RuntimeBbServiceException - If any of the checks fails.boolean isLicensed(java.lang.reflect.AnnotatedElement component)
componentName - Component to check
void assertIsLicensed(java.lang.reflect.AnnotatedElement component)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
isLicensed(), except that exceptions are thrown if the license
check fails.
componentName - Component to check.
LicenseNotFoundException - if the license is not found
LicenseExpiredException - If the license is expired
UnlicensedServerException - If the license is not valid to run on this server
void runtimeAssertIsLicensed(java.lang.reflect.AnnotatedElement component)
throws RuntimeBbServiceException
assertIsLicensed(), but exceptions are wrapped in a RuntimeBbServiceException.
Use e.getNestedException() to get the actual LicenseException.
componentName - License component to check.
RuntimeBbServiceException - If any of the checks fails.
java.util.Date getLicenseExpiration(java.lang.String componentName)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
componentName - License component to check
LicenseNotFoundException - if the license is not found
LicenseExpiredException - if the license is expired
UnlicensedServerException - if the license is not valid to run on this server
java.lang.Integer getLicenseUnitsParameter(java.lang.String componentName,
java.lang.String propertyName)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
componentName - Component to check unit forpropertyName - Unit parameter to check
LicenseNotFoundException - if the license is not found
LicenseExpiredException - if the license is opined
UnlicensedServerException - if the license is not valid to run on this server
boolean isLicenseUnitsParameterUnlimited(java.lang.String componentName,
java.lang.String propertyName)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
componentName - License component to checkpropertyName - Unit parameter to check
LicenseNotFoundException - if the license is not found
LicenseExpiredException - if the license is opined
UnlicensedServerException - if the license is not valid to run on this server
java.lang.String getLicenseParameter(java.lang.String componentName,
java.lang.String propertyName)
throws LicenseNotFoundException,
LicenseExpiredException,
UnlicensedServerException
componentName - License component to checkpropertyName - Unit parameter to check
LicenseNotFoundException - if the license is not found
LicenseExpiredException - if the license is opined
UnlicensedServerException - if the license is not valid to run on this server
License lookupLicense(java.lang.String componentName)
throws LicenseNotFoundException
License associated with the specified component key.
componentName - License to look up
LicenseNotFoundException - Thrown if the specified component is not found.LicenseDescriptor lookupLicenseDescriptor(java.lang.String componentName)
componentName - Component to look up
LicenseDescriptorLicense[] listLicenses()
License objects read from the license file.
License objects.java.lang.String getBuildNumber()
java.lang.String getLongProductName()
java.lang.String getLongProductNameHtml()
java.lang.String getLongProductNameHtmlTm()
java.lang.String getMajorReleaseNumber()
java.lang.String getProductFamilyName()
java.lang.String getProductFamilyNameHtml()
java.lang.String getProductFamilyNameHtmlTm()
java.lang.String getUpdateName()
java.lang.String getUpdateNameLong()
java.lang.String getFamilyNameUpdateHtml()
java.lang.String getAppPack()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||