Namespace

MeadCo.Licensing

MeadCo.Licensing

Methods

# static ErrorMessage() → {string}

Obtain the description of the last error that occurred.

Obtain the description of the last error that occurred.

View Source meadco-scriptx.js, line 1402

Text description of the last error or if no error has occurred, an empty string

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.

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

Deprecated:
  • due to the synchronous ajax calls, use InitAsync
See:

View Source meadco-scriptx.js, line 1263

true if initialisation succeeded and implementations of the MeadCo Security Manager object is available, false if failed

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.

Performs asynchronous initialisation by discovering and connecting to either ScriptX.Addon or the MeadCo ScriptX.Services Client Library emulation of the 'secmgr' object.

View Source meadco-scriptx.js, line 1305

Promise

# static IsLicensed() → {boolean}

Performs synchronous initialisation

.

Performs synchronous initialisation

View Source meadco-scriptx.js, line 1353

true if a valid license is available

boolean

# static IsLicensedAsync() → {Promise}

Performs asynchronous initialisation

.

Performs asynchronous initialisation

View Source meadco-scriptx.js, line 1375

Promise object with a resolve of the loaded license detail and reject of the error message

Promise

# static ReportError(msg)

If an error has occurred, displays an alert box with details of the licensing error with any given message appended.

If an error has occurred, displays an alert box with details of the licensing error with any given message appended.

Parameters:
Name Type Description
msg string

Text to append to the error message.

View Source meadco-scriptx.js, line 1417