OScript API/Built-in Package Index |
Important Note: The License built-ins are supposed to be used internally only, that is, by the License Subsystem in the Kernel module which provides hooks for modules requiring licenses. They are not meant to be used by 3rd party developers.
The License package provides services for retrieving and managing licenses for Content Server and modules that require separate licenses. The major functionalities offered in the License Package are the following:
License Error: Invalid application fingerprint.
License Error: Bad license format.
License Error: Invalid application version.
License Error: Cannot read license file.
License Error: Expired License.
License Error: Error generating fingerprint.
License Error: Failed to get license information.
License Error: Invalid license.
Nonproduction License Type: 1
License Error: No license found.
License Error: Error getting number of active users.
License Error: An old format license that is no longer supported, or a corrupt file.
License Error: Error getting license from OTDS.
License Error: Error getting number of active users.
Production License Type: 2.
Temporary License Type: 0.
License Error: System is busy and cannot read license. Please try again.
License Error: Maximum number of users exceeded.
License Error: Unknown error.
Valid license.
License Error: Error validating license.
Loads and validates a license file and sets it as the Content Server core license
Loads and validates a module license file and sets it as a module license.
Generates a fingerprint string for the installed system.
Returns a hash generated from the license data.
Gets information from the Content Server core license.
Returns a list of licensed applications.
Returns the feature name for the license.
Gets the information from a license content string or a license file path.
Returns a string containing the license info for each license.
Gets information from a Content Server module license
Returns the number of active users in the system.
Validates the Content Server core license
Validates a Content Server module license.
License Error: Invalid application fingerprint.
License Error: Bad license format.
License Error: Invalid application version.
License Error: Cannot read license file.
License Error: Expired License.
License Error: Error generating fingerprint.
License Error: Failed to get license information.
License Error: Invalid license.
Nonproduction License Type: 1
License Error: No license found.
License Error: Error getting number of active users.
License Error: An old format license that is no longer supported, or a corrupt file.
License Error: Error getting license from OTDS.
License Error: Error getting number of active users.
Production License Type: 2.
Temporary License Type: 0.
License Error: System is busy and cannot read license. Please try again.
License Error: Maximum number of users exceeded.
License Error: Unknown error.
Valid license.
License Error: Error validating license.
Loads and validates a license file and sets it as the Content Server core license.
the license content or the full path and name of the license file.
TRUE - file path, FALSE - license content.
Zero if successful; Error otherwise.
Loads and validates a module license file and sets it as a module license.
Full path and name of the license file.
string identifier for the module.
module version.
the number of active users for the module.
Zero if successful; Error otherwise.
Generates a fingerprint string for the installed system.
A string containing the generated fingerprint if successful; Error otherwise.
Returns a hash generated from the license data.
Contents of a license file.
a string containing the report hash if successful; Error otherwise.
Gets information from the Content Server core license.
Error if error occurred; otherwise an assoc with the following structure:
Name |
Type |
ActiveFingerprint |
String |
ActiveVersion |
String |
CustomerName |
String |
EndUserCode |
String |
ExpirationDate |
Date |
LicensedFingerprint |
String |
LicensedVersion |
String |
LicensedType |
String |
NumActiveUsers |
Integer |
NumLicensedUsers |
Integer |
ProductName |
String |
SalesKitInfo |
String |
Status |
Integer |
SUID |
String |
TypeName |
String |
Returns a list of licensed applications.
A list of licensed applications.
Calling the function on a CS with its WebReports licensed will return a list: {'Content_Server','CSAOTPERSPECTIVEMGR','WebReports'}
Returns the feature name for the license.
Contents of a license file.
A string containing the feature name if no errors; Error otherwise.
Calling the function with a WebReport license content will return 'WebReports'.
Gets the information from a license content string or a license file path.
Contents of a license file.
The version of the running system.
optional - The number of active users of the running system.
Error if error occurred; otherwise an assoc with the following structure:
Name |
Type |
ActiveFingerprint |
String |
ActiveVersion |
String |
CustomerName |
String |
EndUserCode |
String |
ExpirationDate |
Date |
LicensedFingerprint |
String |
LicensedVersion |
String |
LicensedType |
String |
NumActiveUsers |
Integer |
NumLicensedUsers |
Integer |
ProductName |
String |
SalesKitInfo |
String |
Status |
Integer |
SUID |
String |
TypeName |
String |
A sample valid result is given below: A<1,?, 'ActiveFingerprint'='47723CB3', 'ActiveVersion'='16.0.0', 'CustomerName'='OpenText Internal Use Only ', 'EndUserCode'='EU0025397', 'ExpirationDate'=D/1900/1/0:0:0:0, 'LicensedFingerprint'='', 'LicensedVersion'='16.0.0', 'LicenseType'=1, 'NumActiveUsers'=7, 'NumLicensedUsers'=100000, 'ProductName'='OpenText Content Server', 'SalesKitInfo'='', 'Status'=0, 'SUID'='48382-38294', 'TypeName'='Non-production'>
Returns a string containing the license info for each license.
An Assoc containing applications.
A string containing the license info for each license.
Gets information from a Content Server module license
string identifier for a module
The version of the module
optional - The number of active users of the module
Error if error occurred; otherwise an assoc with the following structure:
Name |
Type |
ActiveFingerprint |
String |
ActiveVersion |
String |
CustomerName |
String |
EndUserCode |
String |
ExpirationDate |
Date |
LicensedFingerprint |
String |
LicensedVersion |
String |
LicensedType |
String |
NumActiveUsers |
Integer |
NumLicensedUsers |
Integer |
ProductName |
String |
SalesKitInfo |
String |
Status |
Integer |
SUID |
String |
TypeName |
String |
Returns the number of active users in the system.
An integer representing the number of active users or Error if error occurred.
Validates the Content Server core license.
Zero if success; Error otherwise.
Validates a Content Server module license.
A string identifier for the module.
module version.
number of active users for the module.
Zero if success; Error otherwise.
Copyright © 2023 OpenText Corporation. All rights reserved. |