MeadCo.Licensing
- Source:
Methods
(static) ErrorMessage() → {string}
Obtain the description of the last error that occurred.
- Description:
Obtain the description of the last error that occurred.
- Source:
Returns:
Text description of the last error or if no error has occurred, an empty string
- Type
- string
(static) Init() → {boolean}
Performs synchronous initialisation by discovering and connecting to either COM MeadCo Security Manager or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
- Description:
Performs synchronous initialisation by discovering and connecting to either COM MeadCo Security Manager or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
With ScriptX.Print Services this will use a synchronous (blocking, deprecated) call to the server
- Source:
- Deprecated:
- due to the synchronous ajax calls, use InitAsync
- See:
Returns:
true if initialisation succeeded and implementations of the MeadCo Security Manager object is available, false if failed
- Type
- boolean
(static) InitAsync() → {Promise}
Performs asynchronous initialisation by discovering and connecting to either ScriptX.Addon or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
- Description:
Performs asynchronous initialisation by discovering and connecting to either ScriptX.Addon or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.
- Source:
Returns:
- Type
- Promise
(static) IsLicensed() → {boolean}
Performs synchronous initialisation
.- Description:
Performs synchronous initialisation
- Source:
Returns:
true if a valid license is available
- Type
- boolean
(static) IsLicensedAsync() → {Promise}
Performs asynchronous initialisation
.- Description:
Performs asynchronous initialisation
- Source:
Returns:
Promise object with a resolve of the loaded license detail and reject of the error message
- Type
- Promise
(static) ReportError(msg)
If an error has occurred, displays an alert box with details of the licensing error with any given message appended.
- Description:
If an error has occurred, displays an alert box with details of the licensing error with any given message appended.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
msg |
string | Text to append to the error message. |