PP.App.getMbSec

Syntax

getMbSec(callback: Function|PP.Delegate, reforce: Boolean);

Parameters

callback. Callback function.

reforce. It indicates whether additional repository settings are requested again. If the parameter is set to True, repository settings are requested again, otherwise they are not.

Description

The getMbSec method requests additional repository settings.

Comments

The method returns a JSON object with the following fields: users - information about repository users, sharepointSettings - settings of the SharePoint service.

Example

To execute the example, you must be logged in Prognoz Platform 9 web application. The scenario specified below must be started in the browser console.

Determine repository user identifier and key, platform version and repository session timeout time:

// Get additional repository settings
var meta = PP.App.getMbSec();
if (meta != null & meta.users != null) {
    console.log("Repository user identifier: " + meta.users.its.it[0].id);
    console.log("Its key: " + meta.users.its.it[0].k);
};

After executing the example the browser console displays identifier of the repository user and his key, platform version and repository session timeout time:

Repository user identifier: ADMIN

User key: 2147483649

See also:

PP.App